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
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.