Esempio n. 1
0
 private SiloGossipWorker GetClusterWorker(string cluster)
 {
     if (cluster == null) throw new ArgumentNullException("cluster");
     SiloGossipWorker worker;
     if (!this.clusterWorkers.TryGetValue(cluster, out worker))
         this.clusterWorkers[cluster] = worker = new SiloGossipWorker(this, cluster, this.grainFactory);
     return worker;
 }
Esempio n. 2
0
 private SiloGossipWorker GetSiloWorker(SiloAddress silo)
 {
     if (silo == null) throw new ArgumentNullException("silo");
     SiloGossipWorker worker;
     if (!this.siloWorkers.TryGetValue(silo, out worker))
         this.siloWorkers[silo] = worker = new SiloGossipWorker(this, silo, this.grainFactory);
     return worker;
 }
Esempio n. 3
0
        private SiloGossipWorker GetClusterWorker(string cluster)
        {
            SiloGossipWorker worker;

            if (!this.clusterWorkers.TryGetValue(cluster, out worker))
            {
                this.clusterWorkers[cluster] = worker = new SiloGossipWorker(this, cluster);
            }
            return(worker);
        }
Esempio n. 4
0
        private SiloGossipWorker GetSiloWorker(SiloAddress silo)
        {
            SiloGossipWorker worker;

            if (!this.siloWorkers.TryGetValue(silo, out worker))
            {
                this.siloWorkers[silo] = worker = new SiloGossipWorker(this, silo);
            }
            return(worker);
        }
Esempio n. 5
0
        private SiloGossipWorker GetClusterWorker(string cluster)
        {
            if (cluster == null)
            {
                throw new ArgumentNullException("cluster");
            }
            SiloGossipWorker worker;

            if (!this.clusterWorkers.TryGetValue(cluster, out worker))
            {
                this.clusterWorkers[cluster] = worker = new SiloGossipWorker(this, cluster);
            }
            return(worker);
        }
Esempio n. 6
0
        private SiloGossipWorker GetSiloWorker(SiloAddress silo)
        {
            if (silo == null)
            {
                throw new ArgumentNullException("silo");
            }
            SiloGossipWorker worker;

            if (!this.siloWorkers.TryGetValue(silo, out worker))
            {
                this.siloWorkers[silo] = worker = new SiloGossipWorker(this, silo);
            }
            return(worker);
        }