Example #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;
 }
Example #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;
 }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }