private static async Task RegisterUser(GreeterClient client) { Console.WriteLine("Inserte nombre de usuario"); string name = Console.ReadLine(); while (name.Trim().Equals("")) { name = Console.ReadLine(); } Console.WriteLine("Inserte contraseña"); string password = Console.ReadLine(); while (password.Trim().Equals("")) { password = Console.ReadLine(); } var user = new UserRpc { Name = name, Password = password }; var response = await client.RegisterUserAsync(user); Console.WriteLine(response.Message); }