Class HttpControllerDispatcher
- Namespace
- System.Web.Http.Dispatcher
- Assembly
- System.Web.Http.dll
Dispatches an incoming HttpRequestMessage to an IHttpController implementation for processing.
public class HttpControllerDispatcher : HttpMessageHandler, IDisposable
- Inheritance
-
HttpControllerDispatcher
- Implements
- Inherited Members
Constructors
HttpControllerDispatcher(HttpConfiguration)
Initializes a new instance of the HttpControllerDispatcher class with the specified configuration.
public HttpControllerDispatcher(HttpConfiguration configuration)
Parameters
configuration
HttpConfigurationThe http configuration.
Properties
Configuration
Gets the HTTP configuration.
public HttpConfiguration Configuration { get; }
Property Value
- HttpConfiguration
The HTTP configuration.
Methods
SendAsync(HttpRequestMessage, CancellationToken)
Dispatches an incoming HttpRequestMessage to an IHttpController.
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Parameters
request
HttpRequestMessageThe request to dispatch
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<HttpResponseMessage>
A Task<TResult> representing the ongoing operation.