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); }
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); }
public static void RegisterIpcChannel(NewInstanceDetectedHandler handler) { IChannel ipcChannel = new IpcServerChannel(AssemblyGuid); ChannelServices.RegisterChannel(ipcChannel, false); var obj = new IpcObject(handler); RemotingServices.Marshal(obj, ObjectName); }