Exemple #1
0
        public override async Task BuildAsync()
        {
            await base.BuildAsync();

            this.memoryPool         = SlabMemoryPoolFactory.Create(this.options.MemoryPoolOptions);
            this.schedulerAllocator = new SchedulerAllocator(this.options.SchedulerCount);
        }
Exemple #2
0
        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;
        }
Exemple #3
0
        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);
        }