I am currently writing a Windows service in .NET, and I am using named pipes so that other processes communicate with my service. In more complex NamedPipeServerStream constructors, there is a parameter with a descriptive name maxNumberOfServerInstances. Awesome. But what does this mean?
The MSDN documentation is also helpful in explaining:
The maximum number of server instances that have the same name.
Good. This still does not tell me what it means to me, or how I use it. It would be prudent if NamedPipeServerStream would also accept the delegate for “running this code when receiving the connection,” so each “server instance” then ran that code. But this is not so.
source share