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();
                }
            }
        }