示例#1
0
 private static void Write(Stream stream, IpcMessage message)
 {
     Write(stream, message.Serialize());
 }
示例#2
0
 private static IpcMessage Read(Stream stream)
 {
     return(IpcMessage.Parse(stream));
 }
示例#3
0
 public static Stream SendMessage(Stream stream, IpcMessage message, out IpcMessage response)
 {
     Write(stream, message);
     response = Read(stream);
     return(stream);
 }