internal void OnSessionException(Session sender, Exception exception) { if(ExceptionListener != null) { try { ExceptionListener(exception); } catch { sender.Close(); } } }
private void dispatchingThread_ExceptionListener(Exception exception) { if (null != Connection) { try { Connection.OnSessionException(this, exception); } catch { } } }