public void Raise(CrossProcessEventMessage eventMessage) { ThreadPool.QueueUserWorkItem( x => { foreach (var callback in _callbacks) { callback.OnEventRaised(eventMessage); } foreach (var callback in _callbacks) { callback.OnMessageProcessed(eventMessage); } }); }
public void Raise(CrossProcessEventMessage eventMessage) { Channel.Raise(eventMessage); }
public void OnMessageProcessed(CrossProcessEventMessage eventMessage) { EventProcessed(eventMessage.Sender, new CrossProcessEventArgs(eventMessage.Data, eventMessage.Id)); }