CqlSharp.CqlConnection.Shutdown C# (CSharp) Метод

Shutdown() публичный статический Метод

Shutdowns all interaction with the cluster as specified by the connection string.
This will close all open connection, and thereby fail all ongoing cql operations.
public static Shutdown ( string connectionString ) : void
connectionString string The connection string.
Результат void
        public static void Shutdown(string connectionString)
        {
            Cluster cluster;
            if(Clusters.TryGetValue(connectionString, out cluster))
            {
                var logger = cluster.LoggerManager.GetLogger("CqlSharp.CqlConnection.Shutdown");
                using(logger.ThreadBinding())
                {
                    cluster.Dispose();
                }
            }
        }