How to set Correlation ID

21 views
Skip to first unread message

Ajeeth

unread,
May 31, 2014, 5:53:32 AM5/31/14
to nginn-me...@googlegroups.com
Hi All,
 
How do I set a correlation Id in the MessageBus.Send method. I need a reference id for the messages in the Queue to check the outcome of the message
 
Thanks,
Ajeeth

Rafal Gwizdala

unread,
May 31, 2014, 6:09:17 AM5/31/14
to nginn-me...@googlegroups.com
Use the 'fluent' API for sending messages

                MessageBus.NewMessage(new SomeMessage()).SetCorrelationId("correlation_id_1234").Send("sql://destination/queue")

R


--
You received this message because you are subscribed to the Google Groups "nginn-messagebus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nginn-messageb...@googlegroups.com.
To post to this group, send email to nginn-me...@googlegroups.com.
Visit this group at http://groups.google.com/group/nginn-messagebus.

Ajeeth

unread,
May 31, 2014, 7:10:21 AM5/31/14
to nginn-me...@googlegroups.com
Thanks Rafal, That worked.

Ajeeth

unread,
May 31, 2014, 7:16:01 AM5/31/14
to nginn-me...@googlegroups.com
Its works for Send, However how does it work for SendAt?

Rafal Gwizdala

unread,
Jun 5, 2014, 5:56:13 AM6/5/14
to nginn-me...@googlegroups.com
there's no 'SendAt' method in the fluent interface.
Instead, you do

MessageBus.NewMessage(new SomeMessage()).SetCorrelationId("correlation_id_1234").SetDeliveryDate(some date).Send("sql://destination/queue")

R
Reply all
Reply to author
Forward
0 new messages