Visual Studio si lamenta sui seguenti punti:Non posso aspettare l'attesa?
public RelayCommand SendRegistrationCommand { get; private set; }
public async void SendRegistration()
{
HttpClient client = new HttpClient();
var response = await client.GetStringAsync("url");
// ... todo
}
Cannot await 'System.Threading.Tasks.Task<string>'
ho pensato che ho fatto prima, non è GetStringAsync awaitable?
ci mostri metodo completo? Forse non è contrassegnato dal modificatore 'async'? – tpeczek
@tpeczek ive ha pubblicato la funzione – Jason94
Probabilmente stai mirando a .NET 4.0. Puoi passare a 4.5? – dcastro