我现在告诉另一个演员系统的演员到akka遥控器。
private void Handle(Start msg)
{
var selector = Context.ActorSelection("akka.tcp://ConsoleApp2@127.0.0.1:9112/user/HelloActor");
selector.Tell(new HelloActor.AAAAAAAAAA());
}
[单元测试]
var aaaa = ActorOfAsTestActorRef<HelloActor1>(HelloActor1.Props(), ActorPaths.HelloActor.Name);
aaaa.Tell(new HelloActor1.Start());
var msg = ExpectMsg<HelloActor.AAAAAAAAAA>();
单元测试表明没有收到消息。
为什么?