void CreateChannelNetwork() { _connectionChannel = new ChannelAdapter <ConnectionContext>(); _connectionChannelConnection = _connectionChannel.Connect(x => { var channelProvider = new HttpConnectionChannelProvider(_connectionHandlers); var threadPoolChannel = new ThreadPoolChannel <ConnectionContext>(channelProvider, _concurrentConnectionLimit); x.AddChannel(threadPoolChannel); }); }
void CreateChannelNetwork() { _connectionChannel = new ChannelAdapter<ConnectionContext>(); _connectionChannelConnection = _connectionChannel.Connect(x => { var channelProvider = new HttpConnectionChannelProvider(_connectionHandlers); var threadPoolChannel = new ThreadPoolChannel<ConnectionContext>(channelProvider, _concurrentConnectionLimit); x.AddChannel(threadPoolChannel); }); }