public virtual void OnSessionReceiveException(Exception err) { EventHandler <TSessionExceptionEventArgs> handler = this.SessionReceiveException; if (handler != null) { TSessionExceptionEventArgs e = new TSessionExceptionEventArgs(err, this); handler(this, e); } }
protected virtual void OnSessionSendException(Exception err) { EventHandler <TSessionExceptionEventArgs> handler = this.SessionSendException; if (handler != null) { TSessionExceptionEventArgs e = new TSessionExceptionEventArgs(err, this); handler(this, e); } }
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); } }