예제 #1
0
 public void SendMessage(WireMessage message)
 {
     byte[] buffer = message.Encode();
     stream.Write(buffer, 0, buffer.Length);
 }
예제 #2
0
 public async Task SendMessageAsync(WireMessage message)
 {
     byte[] buffer = message.Encode();
     await stream.WriteAsync(buffer, 0, buffer.Length);
 }