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

ClearAllPools() public static method

public static ClearAllPools ( ) : void
return void
		public static void ClearAllPools()
		{
			lock (pools.SyncRoot)
			{
				// Create separate keys list.
				List<string> keys = new	List<string>(pools.Count);

				foreach (string key in pools.Keys)
					keys.Add(key);

				// Remove all pools by key.
				foreach (string key in keys)
					ClearPoolByText(key);
			}
		}

Usage Example

コード例 #1
0
ファイル: Connection.cs プロジェクト: sleepingwit/jal123
 /// <include file='docs/MySqlConnection.xml' path='docs/ClearAllPools/*'/>
 public static void ClearAllPools()
 {
     MySqlPoolManager.ClearAllPools();
 }
All Usage Examples Of MySql.Data.MySqlClient.MySqlPoolManager::ClearAllPools