コード例 #1
0
        public OutboundTest(ITestOutputHelper output)
        {
            var converter = new Converter(output);

            Console.SetOut(converter);
            _pool            = new ByteBufferPool(10, 1024);
            _channelProvider = new MockManagedOutboundChannelProvider(Id.Of(1), Config);
            _outbound        = new Outbound(_channelProvider, new ByteBufferPool(10, 10_000));
        }
コード例 #2
0
        public OutboundTest(ITestOutputHelper output)
        {
            var converter = new Converter(output);

            Console.SetOut(converter);
            _pool            = new ConsumerByteBufferPool(ElasticResourcePool <IConsumerByteBuffer, string> .Config.Of(10), 1024);
            _channelProvider = new MockManagedOutboundChannelProvider(Id.Of(1), Config);
            _outbound        = new Outbound(_channelProvider, new ConsumerByteBufferPool(ElasticResourcePool <IConsumerByteBuffer, string> .Config.Of(10), 10_000));
        }