Пример #1
0
 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);
     }
 }
Пример #2
0
        public static void RemoteUnwatch(RemoteUnwatch msg)
        {
            var endpoint = EnsureConnected(msg.Watchee.Address);

            endpoint.Watcher.Tell(msg);
        }
Пример #3
0
        public static void RemoteUnwatch(RemoteUnwatch msg)
        {
            var endpoint = EnsureConnected(msg.Watchee.Address);

            RootContext.Empty.Send(endpoint.Watcher, msg);
        }