예제 #1
0
            public ConnectionSourceStageLogic(Shape shape, ConnectionSourceStage stage, TaskCompletionSource <StreamTcp.ServerBinding> bindingPromise) : base(shape)
            {
                _stage          = stage;
                _bindingPromise = bindingPromise;

                SetHandler(_stage._out, this);
            }
예제 #2
0
            public ConnectionSourceStageLogic(Shape shape, ConnectionSourceStage stage, TaskCompletionSource <StreamTcp.ServerBinding> bindingPromise) : base(shape)
            {
                _stage          = stage;
                _bindingPromise = bindingPromise;

                SetHandler(_stage._out, onPull: () =>
                {
                    // Ignore if still binding
                    _listener?.Tell(new Tcp.ResumeAccepting(1), StageActorRef);
                }, onDownstreamFinish: TryUnbind);
            }