Asynchronous programming with the Splunk SDK for C#

You've probably already noticed the use of the await expression in our examples. The APIs in the Splunk SDK for C# v2.x that involve HTTP calls are fully asynchronous. You can identify async methods by the "Async" suffix—for example, Service.GetCapabilitiesAsync.

You designate suspension points using the await expression. When you designate a suspension point with await, you're telling the compiler that the async method can't continue past that point until the awaited task is complete. The async method is removed from the scheduling queue until the task it is awaiting completes. For more information about asynchronous programming in C#, see Asynchronous Programming with Async and Await on the Microsoft website.