elliotritchie / NES

.NET Event Sourcing
http://getnes.net
Other
129 stars 32 forks source link

NServiceBus message headers using NES #21

Closed brunobertechini closed 10 years ago

brunobertechini commented 10 years ago

Hi,

Is there any way I can ser a message header (when using nservice bus)?

Is there any hook in place? I would loke to carry some data using headers and dont add tjese properties on every event.

Any suggestions?

Bruno

elliotritchie commented 10 years ago

Hi Bruno

There's the OutgoingHeaders & SetMessageHeader IBus extension methods included with NServiceBus that should do what you need. NES also looks for any message headers and automatically persists them.

You should be able to find out more about setting message headers in the NServiceBus docs.

Hope this helps.

brunobertechini commented 10 years ago

I am aware pf nsb headers. Was just wondering if mês would get them forwarded to The final event

brunobertechini commented 10 years ago

I am well aware of NB headers.

I was just wondering if NES propagate the header to the final Agg Event.

I’ve found another issue explaining this =)

Thank you very much

No I’m moving to make my message mutator to attach the header coming from web app

Thanks a lot

Bruno

From: Elliot Ritchie [mailto:notifications@github.com] Sent: terça-feira, 25 de fevereiro de 2014 12:56 To: elliotritchie/NES Cc: Bruno Bertechini Subject: Re: [NES] NServiceBus message headers using NES (#21)

Hi Bruno

There's the OutgoingHeaders & SetMessageHeader IBus extension methods included with NServiceBus that should do what you need. NES also looks for any message headers and automatically persists them.

You should be able to find out more about setting message headers in the NServiceBus docs http://docs.particular.net/NServiceBus .

Hope this helps.

— Reply to this email directly or view it on GitHub https://github.com/elliotritchie/NES/issues/21#issuecomment-36022453 . https://github.com/notifications/beacon/5166528__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwODg3NjU1NCwiZGF0YSI6eyJpZCI6MjY0MDM0MjJ9fQ==--623ddd2f20c7319173b8e46f61067e4a12ce1fa5.gif

elliotritchie commented 10 years ago

Thanks Bruno. I've just added a page to the wiki to hopefully make this more obvious for anyone else wondering the same thing.

brunobertechini commented 10 years ago

Thanks a lot!

Bruno

From: Elliot Ritchie [mailto:notifications@github.com] Sent: quarta-feira, 26 de fevereiro de 2014 12:41 To: elliotritchie/NES Cc: Bruno Bertechini Subject: Re: [NES] NServiceBus message headers using NES (#21)

Thanks Bruno. I've just added a page to the wiki https://github.com/elliotritchie/NES/wiki/_pages to hopefully make this more obvious for anyone else wondering the same thing.

— Reply to this email directly or view it on GitHub https://github.com/elliotritchie/NES/issues/21#issuecomment-36138216 . https://github.com/notifications/beacon/5166528__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwODk2MjAzMSwiZGF0YSI6eyJpZCI6MjY0MDM0MjJ9fQ==--aa7fa8062a2274bd14dbdca148bbdec8f9ca96a0.gif