コード例 #1
0
        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;
            }
        }
コード例 #2
0
 internal VirtualClusterConnection(VirtualCluster cluster, TestableDateTimeProvider dateTimeProvider)
 {
     UpdateCluster(cluster);
     _dateTimeProvider    = dateTimeProvider;
     _productRegistration = cluster.ProductRegistration;
 }