コード例 #1
0
        public ApplicationOutboundStreamTest(ITestOutputHelper output) : base(output)
        {
            _world = TestWorld.Start("test-outbound-stream");

            var localNodeId = Id.Of(1);

            _channelProvider = new MockManagedOutboundChannelProvider(localNodeId, Config);

            var pool = new ConsumerByteBufferPool(ElasticResourcePool <IConsumerByteBuffer, string> .Config.Of(10), Properties.OperationalBufferSize());

            _outboundStream =
                _world.ActorFor <IApplicationOutboundStream>(
                    () => new ApplicationOutboundStreamActor(_channelProvider, pool));
        }
コード例 #2
0
 public OutboundTest(ITestOutputHelper output) : base(output)
 {
     _pool            = new ConsumerByteBufferPool(ElasticResourcePool <IConsumerByteBuffer, string> .Config.Of(10), Properties.OperationalBufferSize());
     _channelProvider = new MockManagedOutboundChannelProvider(Id.Of(1), Config);
     _outbound        = new Xoom.Wire.Fdx.Outbound.Outbound(_channelProvider, new ConsumerByteBufferPool(ElasticResourcePool <IConsumerByteBuffer, string> .Config.Of(10), 10_000));
 }