Base.TService.AcceptChannel C# (CSharp) Method

AcceptChannel() public method

public AcceptChannel ( ) : Task
return Task
		public override async Task<AChannel> AcceptChannel()
		{
			if (this.acceptor == null)
			{
				throw new Exception("service construct must use host and port param");
			}
			TSocket socket = new TSocket(this.poller);
			await this.acceptor.AcceptAsync(socket);
			TChannel channel = new TChannel(socket, this);
			this.idChannels[channel.Id] = channel;
			return channel;
		}