Page 1 of 1

Tracking multiple SubmitAsync() messages

Posted: Tue Oct 01, 2013 1:08 am
by aaksyonenko
I have a database that receives multiple transactions per second. I need to send a text for each transaction, as quickly as possible. And I need to mark each record with the date/time stamp the message was sent, date/time it was delivered, and delivery status. I thought to use asynchronous mode, but I cannot figure out how to identify in code which receipt goes with which message. Since SubmitAsync returns no value, I can't get the MessageID to match against the receipt MessageID. Is there a way to correlate asynchronous messages and delivery receipts? Maybe using some kind of a custom user parameter (like my record ID from database) that I can submit and get back with the receipt? This is intended to run as a service.

Re: Tracking multiple SubmitAsync() messages

Posted: Thu Oct 10, 2013 12:45 pm
by alt