CqlSharp.CqlConnection.ShutdownAll C# (CSharp) Méthode

ShutdownAll() public static méthode

Shutdowns all interactions with all known clusters
This will close all open connection, and thereby fail all ongoing cql operations.
public static ShutdownAll ( ) : void
Résultat void
        public static void ShutdownAll()
        {
            foreach(var cluster in Clusters.Values)
            {
                var logger = cluster.LoggerManager.GetLogger("CqlSharp.CqlConnection.ShutdownAll");
                using(logger.ThreadBinding())
                {
                    cluster.Dispose();
                }
            }
        }