AutoClientHttpError.CreateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an instance of AutoClientHttpError based on an HttpResponseMessage.
public:
static System::Threading::Tasks::Task<Microsoft::Extensions::Http::AutoClient::AutoClientHttpError ^> ^ CreateAsync(System::Net::Http::HttpResponseMessage ^ response, System::Threading::CancellationToken cancellationToken);
public static System.Threading.Tasks.Task<Microsoft.Extensions.Http.AutoClient.AutoClientHttpError> CreateAsync(System.Net.Http.HttpResponseMessage response, System.Threading.CancellationToken cancellationToken);
static member CreateAsync : System.Net.Http.HttpResponseMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.Http.AutoClient.AutoClientHttpError>
Public Shared Function CreateAsync (response As HttpResponseMessage, cancellationToken As CancellationToken) As Task(Of AutoClientHttpError)
Parameters
- response
- HttpResponseMessage
The response to be used.
- cancellationToken
- CancellationToken
Cancellation token used on asynchronous calls.
Returns
An instance of AutoClientHttpError.
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.