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

                SetHandler(_stage._out, this);
            }
Ejemplo n.º 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);
            }