コード例 #1
0
        public virtual void OnSessionReceiveException(Exception err)
        {
            EventHandler <TSessionExceptionEventArgs> handler = this.SessionReceiveException;

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

            if (handler != null)
            {
                TSessionExceptionEventArgs e = new TSessionExceptionEventArgs(err, this);
                handler(this, e);
            }
        }
コード例 #3
0
        protected virtual void OnSessionSendException(object sender, TSessionExceptionEventArgs e)
        {
            Interlocked.Decrement(ref m_sessionCount);
            Interlocked.Increment(ref m_sessionExceptionCount);

            EventHandler <TSessionExceptionEventArgs> handler = this.SessionSendException;

            if (handler != null)
            {
                handler(this, e);
            }
        }