Ejemplo n.º 1
0
 public async Task CommandHost(NetCommand <HostCommandType> command)
 {
     var payload = command.Serialize();
     var buffer  = Encoding.UTF8.GetBytes(payload);
     await Connection.GetStream().WriteAsync(buffer, 0, buffer.Length);
 }