Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpMessageInvoker Class

.NET Framework (current version)

A specialty class that allows applications to call the SendAsync method on an Http handler chain.

Namespace:   System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)


public class HttpMessageInvoker : IDisposable


Initializes an instance of a HttpMessageInvoker class with a specific HttpMessageHandler.

System_CAPS_pubmethodHttpMessageInvoker(HttpMessageHandler, Boolean)

Initializes an instance of a HttpMessageInvoker class with a specific HttpMessageHandler.


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


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


Determines whether the specified object is equal to the current object.(Inherited from Object.)


Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)


Serves as the default hash function. (Inherited from Object.)


Gets the Type of the current instance.(Inherited from Object.)


Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodSendAsync(HttpRequestMessage, CancellationToken)

Send an HTTP request as an asynchronous operation.


Returns a string that represents the current object.(Inherited from Object.)

This class is the base type for HttpClient and other message originators.

Most applications that are connecting to a web site will use one of the SendAsync methods on the HttpClient class.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
© 2017 Microsoft