示例#1
0
 void HandleMessageReceived(object sender, TransportMessageReceivedEventArgs e, ISatellite satellite)
 {
     if (!satellite.Handle(e.Message))
     {
         ((ITransport)sender).AbortHandlingCurrentMessage();
     }
 }
示例#2
0
 void HandleMessageReceived(object sender, TransportMessageReceivedEventArgs e, ISatellite satellite)
 {
     try
     {
         satellite.Handle(e.Message);
     }
     catch (Exception ex)
     {
         Logger.ErrorFormat("{0} could not handle message. Exception: {1}", satellite.GetType().Name, ex.Message);
         throw;
     }
 }
示例#3
0
 void HandleMessageReceived(object sender, TransportMessageReceivedEventArgs e, ISatellite satellite)
 {
     try
     {
         satellite.Handle(e.Message);
     }
     catch (Exception ex)
     {
         Logger.ErrorFormat("{0} could not handle message. Exception: {1}", satellite.GetType().Name, ex.Message);
         throw;
     }
 }
示例#4
0
 void HandleMessageReceived(object sender, TransportMessageReceivedEventArgs e, ISatellite satellite)
 {
     if (!satellite.Handle(e.Message))
     {
         ((ITransport) sender).AbortHandlingCurrentMessage();
     }
 }