public override async Task BuildAsync() { await base.BuildAsync(); this.memoryPool = SlabMemoryPoolFactory.Create(this.options.MemoryPoolOptions); this.schedulerAllocator = new SchedulerAllocator(this.options.SchedulerCount); }
public TcpClientChannel(SchedulerAllocator allocator, MemoryPool <byte> memoryPool, TcpClientOptions options, Action <IFilterPipeline <ITcpSession> > handler, SslFeature sslFeature) : base(handler, sslFeature, options) { this.memoryPool = memoryPool; this.schedulerAllocator = allocator; }
public UdpChannel(SchedulerAllocator allocator, MemoryPool <byte> memoryPool, UdpOptions options, Action <IFilterPipeline <IUdpSession> > handler) { this.memoryPool = memoryPool; this.schedulerAllocator = allocator; base.ConfigurationSelfOptions(options); base.ConfigurationSelfFilter(handler); }