public void Typed_actor_ref_serialization() { var actor = system.TypedActorOf <ITestAnotherActor>("bar"); var cmd = new TestAnotherActorCommand { Ref = system.TypedActorOf <ITestActor>("foo") }; Assert.DoesNotThrowAsync(async() => await(actor < cmd)); }
Task On(TestAnotherActorCommand x) => x.Ref < new TestActorCommand();
Task On(TestAnotherActorCommand x) => x.Ref.Tell(new TestActorCommand());