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
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.