Upraviť

Zdieľať cez


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
MessageProcessingHandler

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()

Creates an instance of a MessageProcessingHandler class.

MessageProcessingHandler(HttpMessageHandler)

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

Properties

InnerHandler

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

(Inherited from DelegatingHandler)

Methods

Dispose()

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

(Inherited from HttpMessageHandler)
Dispose(Boolean)

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

(Inherited from DelegatingHandler)
Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ProcessRequest(HttpRequestMessage, CancellationToken)

Performs processing on each request sent to the server.

ProcessResponse(HttpResponseMessage, CancellationToken)

Perform processing on each response from the server.

Send(HttpRequestMessage, CancellationToken)

Sends an HTTP request to the inner handler to send to the server.

Send(HttpRequestMessage, CancellationToken)

Sends an HTTP request to the inner handler to send to the server.

(Inherited from DelegatingHandler)
SendAsync(HttpRequestMessage, CancellationToken)

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

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to