How can I create a pipe in C#, and how can I call the created pipe from another process?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use NamedPipeServerStream to create a pipe in C#. The MSDN documentation shows an example of usage, as well as this MSDN Pipes Example.
That being said, it’s often easier to use WCF directly rather than making a pipe and managing it yourself. WCF can use pipes as a transport mechanism, which dramatically simplifies both the creation, as well as the usage of the pipe.