예제 #1
0
        public void UpdateCluster(VirtualCluster cluster)
        {
            if (cluster == null)
            {
                return;
            }

            lock (Lock)
            {
                _cluster = cluster;
                _calls   = cluster.Nodes.ToDictionary(n => n.Uri.Port, v => new State());
            }
        }
 internal VirtualClusterConnection(VirtualCluster cluster, TestableDateTimeProvider dateTimeProvider)
 {
     UpdateCluster(cluster);
     _dateTimeProvider = dateTimeProvider;
 }
예제 #3
0
 public SealedVirtualCluster(VirtualCluster cluster, IConnectionPool pool, TestableDateTimeProvider dateTimeProvider)
 {
     _connectionPool   = pool;
     _connection       = new VirtualClusterConnection(cluster, dateTimeProvider);
     _dateTimeProvider = dateTimeProvider;
 }