public void SenderDetectTest() { var acts = new ActorSystem(); var act = acts.CreateActor<IntoTestActor>(); var act2 = acts.CreateActor<IntoTestActor>(); var m = new senderdetectmsginto() { sender = act }; var mm = new senderdetectmsg() { dest = act2, msg = m }; var tsk = act.Ask<Task<bool>>(mm); tsk.Wait(); tsk.Result.Wait(); Assert.IsTrue(tsk.Result.Result); }
public Task<bool> handler3(senderdetectmsg msg) { return msg.dest.Ask<bool>(msg.msg); }