Akka.Streams.Tests.Actor.ManualSubscriber.Props C# (CSharp) Метод

Props() публичный статический Метод

public static Props ( IActorRef probe ) : Props
probe IActorRef
Результат Props
        public static Props Props(IActorRef probe)
            => Akka.Actor.Props.Create(() => new ManualSubscriber(probe)).WithDispatcher("akka.test.stream-dispatcher");

Usage Example

Пример #1
0
        public void ActorSubscriberSpec_should_terminate_after_cancel()
        {
            var actorRef = Source.From(Enumerable.Range(1, 5))
                           .RunWith(Sink.ActorSubscriber <int>(ManualSubscriber.Props(TestActor)), Sys.Materializer());

            Watch(actorRef);
            actorRef.Tell("requestAndCancel");
            ExpectTerminated(actorRef);
        }
All Usage Examples Of Akka.Streams.Tests.Actor.ManualSubscriber::Props