示例#1
0
 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;
 }
示例#2
0
        private ChannelGossipWorker GetChannelWorker(IGossipChannel channel)
        {
            ChannelGossipWorker worker;

            if (!this.channelWorkers.TryGetValue(channel, out worker))
            {
                this.channelWorkers[channel] = worker = new ChannelGossipWorker(this, channel);
            }
            return(worker);
        }
示例#3
0
 public ChannelGossipWorker(MultiClusterOracle oracle, IGossipChannel channel)
     : base(oracle)
 {
     this.channel = channel;
 }