private void UpdateCluster(VirtualCluster cluster) { if (cluster == null) { return; } lock (Lock) { _cluster = cluster; _calls = cluster.Nodes.ToDictionary(n => n.Uri.Port, v => new State()); _productRegistration = cluster.ProductRegistration; } }
internal VirtualClusterConnection(VirtualCluster cluster, TestableDateTimeProvider dateTimeProvider) { UpdateCluster(cluster); _dateTimeProvider = dateTimeProvider; _productRegistration = cluster.ProductRegistration; }