19
mam metodę ansyc.Net Wywołanie metody asynchronicznej i poczekać
public Task<Car> GetCar()
{
}
mogę wywołać tę metodę asynchronicznie i czekają:
Car car = await GetCar()
Jak mogę wywołać metodę z wykorzystaniem MethodInfo.Invoke i czekają dla wyniku asynchronicznie.
MethodInfo method = obj.GetMethod("GetCar");
method.Invoke(obj, null)
http://stackoverflow.com/questions/14711585/how-to-await-an-async-private-method -invoked-using-reflection-in-winrt –
"Oczekuj asynchronicznie" - czy masz na myśli "ContinueWith"? –