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