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; } }