2
¿Cómo se convierte Task <int> en un int?
Tenemos este método: async Task<int> AccessTheWebAsync() { HttpClient client = new HttpClient(); Task<string> getStringTask = client.GetStringAsync("http://msdn.microsoft.com"); // You can do work here that doesn't rely on the string from GetStringAsync. DoIndependentWork(); string urlContents = await getStringTask; //The thing is that this returns an int to a method that has a …
116
c#
.net
asynchronous
.net-4.5
c#-5.0