Exemplo n.º 1
0
 public IpcObject(NewInstanceDetectedHandler handler)
 {
     NewInstanceDetected += handler;
 }
Exemplo n.º 2
0
        public static void RegisterIpcChannel(NewInstanceDetectedHandler handler)
        {
            IChannel ipcChannel = new IpcServerChannel(AssemblyGuid);
             ChannelServices.RegisterChannel(ipcChannel, false);

             var obj = new IpcObject(handler);
             RemotingServices.Marshal(obj, ObjectName);
        }