public async Task SendMessageAsync(ValueSet valueset) { //DebugValueSet(valueset); var json = Converters.ValueSetToJson(valueset); //Console.WriteLine($"> SEND {json}"); await pipe.Write(json + "\n"); //Console.WriteLine($"> SENT {json}"); }
static public async Task Send(string message, NamedPipeServerStream pipe = null) { byte[] buffer = Encoding.UTF8.GetBytes(message + "\n"); await iipcPipe.Write(buffer, pipe); }