开发者

IPC problem in the c# - ipc is already registered [duplicate]

This question already has answers here: The channel 'tcp' is already registered (3 answers) Closed 8 years ago.

I am trying to create two IPC channels

IpcChannel ipcChannel = new IpcChannel("DroolsClient");
ChannelServices.RegisterChannel(ipcChannel, false);

objec = (DroolsInterface.RulesEngineIn开发者_高级运维terface)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

The channel 'tcp' is already registered

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜