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