private ChannelGossipWorker GetChannelWorker(IGossipChannel channel) { if (channel == null) throw new ArgumentNullException("channel"); ChannelGossipWorker worker; if (!this.channelWorkers.TryGetValue(channel, out worker)) this.channelWorkers[channel] = worker = new ChannelGossipWorker(this, channel); return worker; }
private ChannelGossipWorker GetChannelWorker(IGossipChannel channel) { ChannelGossipWorker worker; if (!this.channelWorkers.TryGetValue(channel, out worker)) { this.channelWorkers[channel] = worker = new ChannelGossipWorker(this, channel); } return(worker); }
public ChannelGossipWorker(MultiClusterOracle oracle, IGossipChannel channel) : base(oracle) { this.channel = channel; }