Method GetFromXmlAsync
GetFromXmlAsync<T>(HttpClient, string, CancellationToken)
Sends a GET request and deserializes the XML response body into T.
public static Task<T> GetFromXmlAsync<T>(this HttpClient client, string requestUri, CancellationToken cancellationToken = default)
Parameters
clientHttpClientrequestUristringcancellationTokenCancellationToken
Returns
- Task<T>
Type Parameters
T