示例#1
0
        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}");
        }
示例#2
0
 static public async Task Send(string message, NamedPipeServerStream pipe = null)
 {
     byte[] buffer = Encoding.UTF8.GetBytes(message + "\n");
     await iipcPipe.Write(buffer, pipe);
 }