Exemplo n.º 1
0
      public static void RegisterIpcChannel(EventHandler<NewInstanceDetectedEventArgs> handler)
      {
         IChannel ipcChannel = new IpcServerChannel(String.Format(CultureInfo.InvariantCulture, "hfm-{0}-{1}", Environment.UserName, AssemblyGuid));
         ChannelServices.RegisterChannel(ipcChannel, false);

         var obj = new IpcObject(handler);
         RemotingServices.Marshal(obj, ObjectName);
      }
Exemplo n.º 2
0
        public static void RegisterIpcChannel(EventHandler <NewInstanceDetectedEventArgs> handler)
        {
            IChannel ipcChannel = new IpcServerChannel(String.Format(CultureInfo.InvariantCulture, "hfm-{0}-{1}", Environment.UserName, _AssemblyGuid));

            ChannelServices.RegisterChannel(ipcChannel, false);

            var obj = new IpcObject(handler);

            RemotingServices.Marshal(obj, ObjectName);
        }
Exemplo n.º 3
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);
        }