예제 #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
파일: HttpServer.cs 프로젝트: Nangal/Stact
		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);
				});
		}