예제 #1
0
 public IPCHelper Client()
 {
     channel = new IpcChannel();
     ChannelServices.RegisterChannel(channel, false);
     myObj = (IPCObject)Activator.GetObject(typeof(IPCObject), $"ipc://{port}/{url}");
     return(this);
 }
예제 #2
0
 public IPCHelper Client(string url)
 {
     channel = new IpcChannel();
     ChannelServices.RegisterChannel(channel, false);
     myObj = (IPCObject)Activator.GetObject(typeof(IPCObject), url);
     return(this);
 }