netNamedPipeBinding is the best binding for interprocess communication which crosses process boundaries on the same machine.
With netNamedPipeBinding the security can be achieved only through transport level security as it does not support message level security. However, messages are secured as only the same machine can call the service operations.
-
WCF Service - with Service contract implementation to read data from XML files.
-
Windows Service - hosting WCF service
You can add Reference to client using net.pipe like
for more details visit - https://geeksarray.com/blog/wcf-by-example-on-netnamedpipebinding