void HandleMessageReceived(object sender, TransportMessageReceivedEventArgs e, ISatellite satellite) { if (!satellite.Handle(e.Message)) { ((ITransport)sender).AbortHandlingCurrentMessage(); } }
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; } }
void HandleMessageReceived(object sender, TransportMessageReceivedEventArgs e, ISatellite satellite) { if (!satellite.Handle(e.Message)) { ((ITransport) sender).AbortHandlingCurrentMessage(); } }