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; }
public SealedVirtualCluster(VirtualCluster cluster, IConnectionPool pool, TestableDateTimeProvider dateTimeProvider) { _connectionPool = pool; _connection = new VirtualClusterConnection(cluster, dateTimeProvider); _dateTimeProvider = dateTimeProvider; }