private void HandleActorMessage(ActorMessage msg) { //IActorRef sub1 = ActorsSystem.Actors["SimpleSubActor1"]; //var sub1 = Context.ActorSelection("akka://AKKA-NET/user//SimpleActor/SimpleSubActor1").ResolveOne(TimeSpan.Zero).Result; var sub1 = Context.ActorSelection("SimpleSubActor1").ResolveOne(TimeSpan.Zero).Result; sub1.Tell(msg); }
private void HandleActorMessage(ActorMessage msg) { Console.WriteLine($"The previous state was {_value}"); _value += msg.Value; Console.WriteLine($"The current state is now {_value}"); Console.WriteLine($"path {Self.Path}"); Console.WriteLine($"randomUID {Self.Path.Uid}"); Console.WriteLine($"sender {Sender.Path}\n"); }