C#

Documentation

Versions

Recipes

Synchronous call to an asynchronous method

// if CallServiceAsync returns Task (void)
var task = Task.Run(() => CallServiceAsync(url, action));
task.Wait();

Last updated