Skip to content

Instantly share code, notes, and snippets.

Avatar

Johann Weiher Suplanus

View GitHub Profile
@Suplanus
Suplanus / PipeBidirectional.cs
Last active Aug 28, 2019
NamedPipeServerStream & NamedPipeClientStream InOut async: https://suplanus.de/namedpipestream-inout-async/
View PipeBidirectional.cs
// Client
var pipeClient = new PipeBidirectional(PipeType.Client);
pipeClient.PipeMessage += PipeServerOnPipeMessage;
pipeClient.Start("MyPipe");
pipeClient.ListenAsync();
pipeClient.WriteAsync("Hello from Client");
private static void PipeServerOnPipeMessage(string args)
{
// Do stuff