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; }
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; }
private SiloGossipWorker GetClusterWorker(string cluster) { SiloGossipWorker worker; if (!this.clusterWorkers.TryGetValue(cluster, out worker)) { this.clusterWorkers[cluster] = worker = new SiloGossipWorker(this, cluster); } return(worker); }
private SiloGossipWorker GetSiloWorker(SiloAddress silo) { SiloGossipWorker worker; if (!this.siloWorkers.TryGetValue(silo, out worker)) { this.siloWorkers[silo] = worker = new SiloGossipWorker(this, silo); } return(worker); }
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); }
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); }