Esempio n. 1
0
        protected virtual void OnUnhandledException(MessageException exception)
        {
            if (IdDisposed)
                return;

            LoggerFacade.LogException(exception, Priority.Medium);
            UnhandledException(this, new MessageExceptionEventArgs(exception));
        }
Esempio n. 2
0
        protected override void OnUnhandledException(MessageException exception)
        {
            if (IdDisposed)
                return;

            base.OnUnhandledException(exception);
            End();
        }
Esempio n. 3
0
        protected virtual void OnConnectFailed(MessageException exception)
        {
            if (IdDisposed)
                return;

            LoggerFacade.LogException(exception);
            ConnectFailed(this, new MessageExceptionEventArgs(exception));
        }
Esempio n. 4
0
 /// <summary>
 /// a safe version of OnUnhandledException which ignores exceptions thrown by handlers
 /// </summary>
 protected void OnSafeUnhandledException(MessageException exception)
 {
     try
     {
         OnUnhandledException(exception);
     }
     catch (Exception)
     { }
 }
Esempio n. 5
0
 /// <summary>
 /// a safe version of OnConnectFailed which ignores exceptions thrown by handlers
 /// </summary>
 protected void OnSafeConnectFailed(MessageException exception)
 {
     try
     {
         OnConnectFailed(exception);
     }
     catch (Exception)
     { }
 }
Esempio n. 6
0
 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);
 }
Esempio n. 7
0
 public MessageExceptionEventArgs(MessageException exception)
 {
     this.Exception = exception;
 }
Esempio n. 8
0
 protected virtual void OnConnectFailed(MessageException exception)
 {
     ConnectFailed(this, new MessageExceptionEventArgs(exception));
 }