IPC problem in the c# - ipc is already registered [duplicate]
문제
This question already has an answer here:
- The channel 'tcp' is already registered 3 answers
I am trying to create two IPC channels
IpcChannel ipcChannel = new IpcChannel("DroolsClient");
ChannelServices.RegisterChannel(ipcChannel, false);
objec = (DroolsInterface.RulesEngineInterface)Activator.GetObject(typeof(DroolsInterface.RulesEngineInterface), "ipc://Drools/SreeniRemoteObj");
IpcChannel ipcChannel2 = new IpcChannel("ProxemClient");
ChannelServices.RegisterChannel(ipcChannel2, true);
objec2 = (ProxemProject.ProxemInterface)Activator.GetObject(typeof(ProxemProject.ProxemInterface), "ipc://ProxemProcess/SreeniRemoteObj");
But when it gets to the second ChannelServices it gives an error
The channel 'ipc' is already registered
Would anyone be kind enough to help please
해결책
See this question Two-way communication using IPC
제휴하지 않습니다 StackOverflow