MessageProcessingHandler MessageProcessingHandler MessageProcessingHandler MessageProcessingHandler Class

Definition

A base type for handlers which only do some small processing of request and/or response messages.

public ref class MessageProcessingHandler abstract : System::Net::Http::DelegatingHandler
public abstract class MessageProcessingHandler : System.Net.Http.DelegatingHandler
type MessageProcessingHandler = class
    inherit DelegatingHandler
Public MustInherit Class MessageProcessingHandler
Inherits DelegatingHandler
Inheritance

Remarks

The actual creation of response messages is delegated to an inner handler. The MessageProcessingHandler is useful if the handler doesn't require asynchronous operations, because operations on request and response messages are fast.

The most common usage is to derive from this class and override the ProcessRequest and ProcessResponse methods.

Constructors

MessageProcessingHandler() MessageProcessingHandler() MessageProcessingHandler() MessageProcessingHandler()

Creates an instance of a MessageProcessingHandler class.

MessageProcessingHandler(HttpMessageHandler) MessageProcessingHandler(HttpMessageHandler) MessageProcessingHandler(HttpMessageHandler) MessageProcessingHandler(HttpMessageHandler)

Creates an instance of a MessageProcessingHandler class with a specific inner handler.

Methods

Dispose() Dispose() Dispose() Dispose()

Releases the unmanaged resources and disposes of the managed resources used by the HttpMessageHandler.

(Inherited from HttpMessageHandler)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources used by the DelegatingHandler, and optionally disposes of the managed resources.

(Inherited from DelegatingHandler)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ProcessRequest(HttpRequestMessage, CancellationToken) ProcessRequest(HttpRequestMessage, CancellationToken) ProcessRequest(HttpRequestMessage, CancellationToken) ProcessRequest(HttpRequestMessage, CancellationToken)

Performs processing on each request sent to the server.

ProcessResponse(HttpResponseMessage, CancellationToken) ProcessResponse(HttpResponseMessage, CancellationToken) ProcessResponse(HttpResponseMessage, CancellationToken) ProcessResponse(HttpResponseMessage, CancellationToken)

Perform processing on each response from the server.

SendAsync(HttpRequestMessage, CancellationToken) SendAsync(HttpRequestMessage, CancellationToken) SendAsync(HttpRequestMessage, CancellationToken) SendAsync(HttpRequestMessage, CancellationToken)

Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Properties

InnerHandler InnerHandler InnerHandler InnerHandler

Gets or sets the inner handler which processes the HTTP response messages.

(Inherited from DelegatingHandler)

Applies to