示例#1
0
 private static void Where(IActorRef Self, IActorRef MyContainer)
 {
     MyContainer
     .GetName()
     .ContinueWith(t => new Notify($"You are in {t.Result}"))
     .PipeTo(Self);
 }
示例#2
0
 private static void NotifyObjectAppears(IActorRef who, IActorRef self, IActorRef sender)
 {
     who
     .GetName()
     .ContinueWith(t => new ContainerNotify($"{t.Result} appears", who, sender))
     .PipeTo(self);
 }