public override void PreStart()
        {
            base.PreStart();

            SourceActor   = GetStageActor(MessageHandling);
            ConsumerActor = CreateConsumerActor();
            SourceActor.Watch(ConsumerActor);

            ConfigureSubscription();
        }
        protected override void PerformShutdown()
        {
            SetKeepGoing(true);

            if (!IsClosed(_shape.Outlet))
            {
                Complete(_shape.Outlet);
            }

            SourceActor.Become(ShuttingDownReceive);
            StopConsumerActor();
        }
 private void Handle(object m)
 {
     Asker = Sender;
     SourceActor.Tell(m);
     Become(ResponseWait);
 }
Пример #4
0
 private void Handle(object m) => SourceActor.Tell(m);