MySql.Data.MySqlClient.MySqlPoolManager.RemoveConnection C# (CSharp) Method

RemoveConnection() public static method

public static RemoveConnection ( Driver driver ) : void
driver Driver
return void
        public static void RemoveConnection(Driver driver)
        {
            Debug.Assert(driver != null);

			MySqlPool pool = driver.Pool;
			if (pool == null) return;

            pool.RemoveConnection(driver);
        }

Usage Example

コード例 #1
0
ファイル: Driver.cs プロジェクト: borllor/Roadlight.Net
 protected virtual void Dispose(bool disposing)
 {
     if (this.disposeInProgress)
     {
         return;
     }
     this.disposeInProgress = true;
     try
     {
         this.ResetTimeout(1000);
         if (disposing)
         {
             this.handler.Close(this.isOpen);
         }
         if (this.connectionString.Pooling)
         {
             MySqlPoolManager.RemoveConnection(this);
         }
     }
     catch (Exception)
     {
         if (disposing)
         {
             throw;
         }
     }
     finally
     {
         this.reader            = null;
         this.isOpen            = false;
         this.disposeInProgress = false;
     }
 }
All Usage Examples Of MySql.Data.MySqlClient.MySqlPoolManager::RemoveConnection