Esempio n. 1
0
 public SQLCluster(SQLModule module, SQLSettings.Cluster cluster)
 {
     Module   = module;
     Settings = cluster;
     Nodes    = cluster.Nodes
                .Select(n => new SQLNode(module, this, n))
                .Where(n => n.TryAddToGlobalPollers())
                .ToList();
     RefreshInterval = (cluster.RefreshIntervalSeconds ?? Module.Settings.RefreshIntervalSeconds).Seconds();
 }
Esempio n. 2
0
 public SQLAzureServer(SQLModule module, SQLSettings.Instance settings) : base(module, settings)
 {
 }
Esempio n. 3
0
 public SQLNode(SQLModule module, SQLCluster sqlCluster, SQLSettings.Instance node) : base(module, node)
 {
     Cluster = sqlCluster;
 }