WCF named pipe minimal example

I just found this excellent little tutorial. broken link (Cached version) I also followed Microsoft’s tutorial which is nice, but I only needed pipes as well. As you can see, you don’t need configuration files and all that messy stuff. By the way, he uses both HTTP and pipes. Just remove all code lines related … Read more

Example of Named Pipes

using System; using System.IO; using System.IO.Pipes; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { StartServer(); Task.Delay(1000).Wait(); //Client var client = new NamedPipeClientStream(“PipesOfPiece”); client.Connect(); StreamReader reader = new StreamReader(client); StreamWriter writer = new StreamWriter(client); while (true) { string input = Console.ReadLine(); if (String.IsNullOrEmpty(input)) break; writer.WriteLine(input); writer.Flush(); Console.WriteLine(reader.ReadLine()); … Read more