Table of Contents

Interface IHttpControllerSelector

Namespace
System.Web.Http.Dispatcher
Assembly
System.Web.Http.dll

Defines the methods that are required for an IHttpController factory.

public interface IHttpControllerSelector

Methods

GetControllerMapping()

Returns a map, keyed by controller string, of all HttpControllerDescriptor that the selector can select. This is primarily called by IApiExplorer to discover all the possible controllers in the system.

IDictionary<string, HttpControllerDescriptor> GetControllerMapping()

Returns

IDictionary<string, HttpControllerDescriptor>

A map of all HttpControllerDescriptor that the selector can select, or null if the selector does not have a well-defined mapping of HttpControllerDescriptor.

SelectController(HttpRequestMessage)

HttpControllerDescriptor SelectController(HttpRequestMessage request)

Parameters

request HttpRequestMessage

The request message.

Returns

HttpControllerDescriptor

An HttpControllerDescriptor instance.