0
votes

Assume we have an application A. It has two modules that it loads Module X and Module Y which communicate via net.pipe and a fixed URI.

Say Module X (WCF client) connects to Module Y(WCF server) with URI MyService. Also note there could be multiple instances of Module X in the same app that connect to Module Y. Now if we launch another instance of the application A, we will have two named pipe server instances with same URI created by Module Y. (The search algorithm used by WCF named pipes is listed here.)

Which pipe will be used by the modules to connect to each other if multiple instances of the same application is launched?

1

1 Answers

0
votes

we will have two named pipe server instances with same URI created by Module Y

I don't think this is possible, because only one ServiceHost at a time can open a listener on a specific net.pipe URI, as far as I know, so you could only have one named pipe server active on the URI at any one time.

If you think you have succeeded in creating multiple concurrent active servers, please edit your question to be more specific about the service hosting, and what you mean by "Application" and "Module" and "instances" thereof.