Muokkaa

Jaa


MessageProcessingHandler.ProcessResponse Method

Definition

Perform processing on each response from the server.

protected:
 abstract System::Net::Http::HttpResponseMessage ^ ProcessResponse(System::Net::Http::HttpResponseMessage ^ response, System::Threading::CancellationToken cancellationToken);
protected abstract System.Net.Http.HttpResponseMessage ProcessResponse (System.Net.Http.HttpResponseMessage response, System.Threading.CancellationToken cancellationToken);
abstract member ProcessResponse : System.Net.Http.HttpResponseMessage * System.Threading.CancellationToken -> System.Net.Http.HttpResponseMessage
Protected MustOverride Function ProcessResponse (response As HttpResponseMessage, cancellationToken As CancellationToken) As HttpResponseMessage

Parameters

response
HttpResponseMessage

The HTTP response message to process.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

The HTTP response message that was processed.

Exceptions

The cancellation token was canceled. This exception is stored into the returned task.

Remarks

An application would override this method to implement custom processing of the HTTP response message after it is received from the server.

Applies to