Example #1
0
 private static void Write(Stream stream, IpcMessage message)
 {
     byte[] buffer = message.Serialize();
     stream.Write(buffer, 0, buffer.Length);
 }
Example #2
0
 private static void Write(Stream stream, IpcMessage message)
 {
     Write(stream, message.Serialize());
 }
Example #3
0
 private static Task WriteAsync(Stream stream, IpcMessage message, CancellationToken cancellationToken)
 {
     byte[] buffer = message.Serialize();
     return(stream.WriteAsync(buffer, 0, buffer.Length, cancellationToken));
 }