/// <summary> /// 输出调试信息 /// </summary> private void OnShowDebugMessage(string message) { if (this.ShowDebugMessage != null) { TExceptionEventArgs e = new TExceptionEventArgs(message); this.ShowDebugMessage(this, e); } }
protected virtual void OnDatabaseOpenException(Exception err) { EventHandler <TExceptionEventArgs> handler = this.DatabaseOpenException; if (handler != null) { TExceptionEventArgs e = new TExceptionEventArgs(err); handler(this, e); } }
protected virtual void OnDatabaseException(object sender, TExceptionEventArgs e) { Interlocked.Increment(ref m_databaseExceptionCount); EventHandler <TExceptionEventArgs> handler = this.DatabaseExcpetion; if (handler != null) { handler(sender, e); // 转发事件的激发者 } }
protected virtual void OnServerException(Exception err) { Interlocked.Increment(ref m_serverExceptCount); EventHandler <TExceptionEventArgs> handler = this.ServerException; if (handler != null) { TExceptionEventArgs e = new TExceptionEventArgs(err); handler(this, e); } }
protected void OnShowDebugMessage(string message) { if (this.ShowDebugMessage != null) { TExceptionEventArgs e = new TExceptionEventArgs(message); this.ShowDebugMessage(this, e); } }
protected virtual void OnDatabaseOpenException(Exception err) { EventHandler<TExceptionEventArgs> handler = this.DatabaseOpenException; if (handler != null) { TExceptionEventArgs e = new TExceptionEventArgs(err); handler(this, e); } }