I\'m attempting to use the documentation on the RestSharp GitHub wiki to implement calls to my REST API service but I\'m having an issue with the ExecuteAsync method in part
Since public static RestRequestAsyncHandle ExecuteAsync(this IRestClient client, IRestRequest request, Action
has been deprecated, you should look to using public Task
instead.
The following code
client.ExecuteAsync(request, response => { callback(response.Content); });
Should instead become
await client.ExecuteAsync(request).ContinueWith(task => callback(task.Result.Content));