I want to attach an handle.Set() to fire an 'Consumexxx' is called by
RSB. Currently, the events aren't exposed by ITransport to do this
(specifically MessageArrived event).
My question is, is this a bad idea?
I'm working on an BeginSend and EndSend asynch wrapper for RSB but I
don't want all my Consumers to require access to the IAsyncResult
handle to tell the thread the message is consumed:
public void Consume(MyMessage msg){
//do stuff
handle.Set()
};
Really what should be handled is the end of the entire Send()
lifecycle (maybe MessageProcessingCompleted but it isn't exposed) so
the thread can be told to resume.
Am I off on this or should some kind of event be exposed for this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Rhino Tools Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---