Пример #1
0
        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);
            });
        }
Пример #2
0
		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);
				});
		}