public ConnectionSourceStageLogic(Shape shape, ConnectionSourceStage stage, TaskCompletionSource <StreamTcp.ServerBinding> bindingPromise) : base(shape) { _stage = stage; _bindingPromise = bindingPromise; SetHandler(_stage._out, this); }
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); }