Example #1
0
        protected virtual void OnSessionSendException(Exception err)
        {
            EventHandler <TSessionExceptionEventArgs> handler = this.SessionSendException;

            if (handler != null)
            {
                TSessionExceptionEventArgs e = new TSessionExceptionEventArgs(err, this);
                handler(this, e);
            }
        }
Example #2
0
        protected virtual void OnSessionReceiveException(object sender, TSessionExceptionEventArgs e)
        {
            Interlocked.Decrement(ref m_sessionCount);
            Interlocked.Increment(ref m_sessionExceptionCount);

            EventHandler <TSessionExceptionEventArgs> handler = this.SessionReceiveException;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #3
0
 protected virtual void OnSessionSendException(Exception err)
 {
     EventHandler<TSessionExceptionEventArgs> handler = this.SessionSendException;
     if (handler != null)
     {
         TSessionExceptionEventArgs e = new TSessionExceptionEventArgs(err, this);
         handler(this, e);
     }
 }