Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Serializing events as POCO objects - IoC or other framework?

$
0
0
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:

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.

Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>