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