c# - Async method in Global.asax -
I have to call some async methods in the Application_PostAcquireRequestState method of my Global.asax (these methods come from a library and some Not equivalent sync method for these functions). I want to make sure that this async code has been completed before continuing the page page process because some security parameters are set with the result of that async call.
Thanks
just results
to Call the property of the job
that the * async ()
methods return, for example.
var results = barSync (). result;
If methods work
instead of work
T & gt; , Wait ()
:
BarSync (). Wait ();
Comments
Post a Comment