Hey everyone,

I'm hoping to achieve the following scenario:


Usually with endpoints we have the following:

public class Endpoint1 : ConsumerOf<MessageType1>

But i'm wondering if the following is possible:

public class Endpoint1 : ConsumerOf<MessageType1<Action1>>

Hopefully this way I'll be able to do the following:

For example, 4 endpoints that all subscribe on 1 specific endpoint,
lets call it server.

The server publishes a MessageType1<Action1> message and only the
first endpoint will consume it because that one has :
ConsumerOf<MessageType1<Action1>>.
The other endpoints have for example,
ConsumerOf<MessageType1<Action2>> etc. so they will not consume
MessageType1<Action1> messages.

Is this possible to do? Because I'm having a hard time getting it to
work.

Easiest work around would be to define a property inside the message
that specifies the type, but then all endpoints will receive the
message and they'll all consume it, checking the property wether they
have to do anything with the message or not.

Kind regards,

Dirk

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to rhino-tools-dev@googlegroups.com.
To unsubscribe from this group, send email to 
rhino-tools-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en.

Reply via email to