Akka.Tests.Actor.DeathWatchSpec.WatchAndUnwatchMonitor.Receive C# (CSharp) Méthode

Receive() protected méthode

protected Receive ( object message ) : bool
message object
Résultat bool
            protected override bool Receive(object message)
            {
                message.Match()
                    .With<string>(x =>
                    {
                        if (x == "ping")
                        {
                            _testActor.Tell("pong");
                        }
                    })
                    .With<Terminated>(x => _testActor.Tell(new WrappedTerminated(x)));
                return true;
            }
        }
DeathWatchSpec.WatchAndUnwatchMonitor