Skip to content

Files

Latest commit

37f5f9b · Aug 29, 2021

History

History
17 lines (11 loc) · 304 Bytes

csharp.md

File metadata and controls

17 lines (11 loc) · 304 Bytes

C#

Documentation

Versions

Recipes

Synchronous call to an asynchronous method

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