public static void ClearPool (SqlConnection connection)
{
if (connection == null)
throw new ArgumentNullException ("connection");
// FIXME: locking
if (connection.pooling) {
TdsConnectionPool pool = sqlConnectionPools.GetConnectionPool (connection.ConnectionString);
if (pool != null)
pool.ResetConnectionPool ();
}
}