private void Handle(Start msg) { PongParentActor = Context.ActorOf(Context.DI().Props <PongParentActor>(), "PongParentActor-" + Context.GetChildren().Count()); PingParentActor = Context.ActorOf(Context.DI().Props <PingParentActor>(), "PingParentActor-" + Context.GetChildren().Count()); PongParentActor.Tell(msg); MessagePrintService.Print(string.Empty); }
private void Handle(Start msg) { Console.WriteLine("Hello"); Thread.Sleep(1000); PongParentActor.Tell(msg); }