Use the async method in a sync call

From: SO

.Net 4.5

Just use this:

.Net 4.0

Use this:

…or this:

And AsyncHelper is also helpful:

Leave a Reply

Your email address will not be published / Required fields are marked *