private void Send(PID pid, object msg, PID sender) { if (msg is Watch w) { var rw = new RemoteWatch(w.Watcher, _pid); RemotingSystem.EndpointManagerPid.Tell(rw); } else if (msg is Unwatch uw) { var ruw = new RemoteUnwatch(uw.Watcher, _pid); RemotingSystem.EndpointManagerPid.Tell(ruw); } else { SendRemoteMessage(_pid, msg, sender); } }
public static void RemoteWatch(RemoteWatch msg) { var endpoint = EnsureConnected(msg.Watchee.Address); endpoint.Watcher.Tell(msg); }
public static void RemoteWatch(RemoteWatch msg) { var endpoint = EnsureConnected(msg.Watchee.Address); RootContext.Empty.Send(endpoint.Watcher, msg); }