Apache.NMS.ActiveMQ.Connection.OnSessionException C# (CSharp) Метод

OnSessionException() приватный Метод

private OnSessionException ( Session sender, Exception exception ) : void
sender Session
exception System.Exception
Результат void
        internal void OnSessionException(Session sender, Exception exception)
        {
            if(ExceptionListener != null)
            {
                try
                {
                    ExceptionListener(exception);
                }
                catch
                {
                    sender.Close();
                }
            }
        }

Usage Example

Пример #1
0
 private void dispatchingThread_ExceptionListener(Exception exception)
 {
     if (null != Connection)
     {
         try
         {
             Connection.OnSessionException(this, exception);
         }
         catch
         {
         }
     }
 }