I am registering specific messages that when received call specific events.
I see BrokeredMessage accepts an object, which I understand I would need to implement ISerializable for all messages.
Hpwever, my messages are plain POCO objects, and I would like to explore possibilities of using them as-is:
During receive I would:
1. Retrieve the message and return to object type
2. Look-up my map, call events who are registered for this event message
Whilst simple to describe, pulling my hair out with the first step.
Are there any frameworks, that would wrap this for me over the Windows Service bus?
If using IoC, ideally I would like to have the capability to use my favorite injector SimpleInjector - if it is straight forward to define an adapter this would not be a problem.
I see BrokeredMessage accepts an object, which I understand I would need to implement ISerializable for all messages.
Hpwever, my messages are plain POCO objects, and I would like to explore possibilities of using them as-is:
public class CustomerOrderEvent { int orderId; int quantity; double value; }
During receive I would:
1. Retrieve the message and return to object type
2. Look-up my map, call events who are registered for this event message
Whilst simple to describe, pulling my hair out with the first step.
Are there any frameworks, that would wrap this for me over the Windows Service bus?
If using IoC, ideally I would like to have the capability to use my favorite injector SimpleInjector - if it is straight forward to define an adapter this would not be a problem.