Exemplo n.º 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);
     }
 }
Exemplo n.º 2
0
        public static void RemoteWatch(RemoteWatch msg)
        {
            var endpoint = EnsureConnected(msg.Watchee.Address);

            endpoint.Watcher.Tell(msg);
        }
Exemplo n.º 3
0
        public static void RemoteWatch(RemoteWatch msg)
        {
            var endpoint = EnsureConnected(msg.Watchee.Address);

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