Beispiel #1
0
 /// <summary>
 /// 引发 <see cref="DbServerStateScanner"/> 类型对象的 <see cref="Scanned"/> 事件。
 /// </summary>
 /// <param name="connectionString"></param>
 /// <param name="serverType"></param>
 /// <param name="serverState"></param>
 protected void OnScanned(string connectionString, DbServerType serverType, DbServerState serverState)
 {
     if (this.Scanned != null)
     {
         DbServerStateScanEventArgs e = new DbServerStateScanEventArgs(connectionString, serverType, serverState);
         this.Scanned(this, e);
     }
 }
Beispiel #2
0
 private void DbServerStateScanner_Scanned(object sender, DbServerStateScanEventArgs e)
 {
     MasterSlaveInterception.Dispatcher.DbServerStateScanned(e.ConnectionString, e.DbServerType, e.DbServerState, this._config.TargetContextType);
 }
 private void DbServerStateScanner_Scanned(object sender, DbServerStateScanEventArgs e)
 {
     MasterSlaveInterception.Dispatcher.DbServerStateScanned(e.ConnectionString, e.DbServerType, e.DbServerState, this._config.TargetContextType);
 }
 /// <summary>
 /// 引发 <see cref="DbServerStateScanner"/> 类型对象的 <see cref="Scanned"/> 事件。
 /// </summary>
 /// <param name="connectionString"></param>
 /// <param name="serverType"></param>
 /// <param name="serverState"></param>
 protected void OnScanned(string connectionString, DbServerType serverType, DbServerState serverState)
 {
     if (this.Scanned != null)
     {
         DbServerStateScanEventArgs e = new DbServerStateScanEventArgs(connectionString, serverType, serverState);
         this.Scanned(this, e);
     }
 }