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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.