protected virtual void OnUnhandledException(MessageException exception) { if (IdDisposed) return; LoggerFacade.LogException(exception, Priority.Medium); UnhandledException(this, new MessageExceptionEventArgs(exception)); }
protected override void OnUnhandledException(MessageException exception) { if (IdDisposed) return; base.OnUnhandledException(exception); End(); }
protected virtual void OnConnectFailed(MessageException exception) { if (IdDisposed) return; LoggerFacade.LogException(exception); ConnectFailed(this, new MessageExceptionEventArgs(exception)); }
/// <summary> /// a safe version of OnUnhandledException which ignores exceptions thrown by handlers /// </summary> protected void OnSafeUnhandledException(MessageException exception) { try { OnUnhandledException(exception); } catch (Exception) { } }
/// <summary> /// a safe version of OnConnectFailed which ignores exceptions thrown by handlers /// </summary> protected void OnSafeConnectFailed(MessageException exception) { try { OnConnectFailed(exception); } catch (Exception) { } }
protected override void OnConnectFailed(MessageException exception) { LoggerFacade.LogDebug( string.Format("TcpConnector : Failed to connect to {0}\r\n\tDetails : {1}", HostAddress, exception.InnerMessage)); base.OnConnectFailed(exception); }
public MessageExceptionEventArgs(MessageException exception) { this.Exception = exception; }
protected virtual void OnConnectFailed(MessageException exception) { ConnectFailed(this, new MessageExceptionEventArgs(exception)); }