Hi,
I'm looking for RestSharp's async mechanism for submitting requests.
By browsing the source code, I realized all the related implementation methods are in \src\RestSharp\Legacy\RestClient.cs and are marked as:
[Obsolete("This method will be removed soon in favour of the proper async call")]
The weird thing is IRestClient.ExecuteAsync() and all of its flavors are not marked as obsolete, and the implementations in \src\RestSharp\RestClient.Async.cs are also not obsolete, but the method in
RestClient.Async.cs file with this signature:
public Task<IRestResponse> ExecuteAsync(IRestRequest request, CancellationToken token = default)
makes an internal call to one of the obsolete legacy methods.
So, may I know what's the (new) proper way for making async requests in RestSharp?
Thank you so much.
Cheers,
Sia