C# Class Hyper.Http.Dispatcher.HyperHttpControllerSelector

HyperHttpControllerSelector class.
Inheritance: IHttpControllerSelector
Mostra file Open project: tmitchel2/Hyper

Public Methods

Method Description
GetControllerMapping ( ) : HttpControllerDescriptor>.IDictionary

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

GetControllerName ( HttpRequestMessage request ) : string

Gets the name of the controller.

HyperHttpControllerSelector ( System.Web.Http.HttpConfiguration configuration ) : System

Initializes a new instance of the HyperHttpControllerSelector class.

SelectController ( HttpRequestMessage request ) : HttpControllerDescriptor

Selects a T:System.Web.Http.Controllers.HttpControllerDescriptor for the given T:System.Net.Http.HttpRequestMessage.

Private Methods

Method Description
InitializeControllerInfoCache ( ) : HttpControllerDescriptor>.ConcurrentDictionary

Initializes the controller info cache.

Method Details

GetControllerMapping() public method

Returns a map, keyed by controller string, of all T:System.Web.Http.Controllers.HttpControllerDescriptor that the selector can select. This is primarily called by T:System.Web.Http.Description.IApiExplorer to discover all the possible controllers in the system.
public GetControllerMapping ( ) : HttpControllerDescriptor>.IDictionary
return HttpControllerDescriptor>.IDictionary

GetControllerName() public method

Gets the name of the controller.
public GetControllerName ( HttpRequestMessage request ) : string
request System.Net.Http.HttpRequestMessage The request.
return string

HyperHttpControllerSelector() public method

Initializes a new instance of the HyperHttpControllerSelector class.
public HyperHttpControllerSelector ( System.Web.Http.HttpConfiguration configuration ) : System
configuration System.Web.Http.HttpConfiguration The configuration.
return System

SelectController() public method

Selects a T:System.Web.Http.Controllers.HttpControllerDescriptor for the given T:System.Net.Http.HttpRequestMessage.
public SelectController ( HttpRequestMessage request ) : HttpControllerDescriptor
request System.Net.Http.HttpRequestMessage The request message.
return HttpControllerDescriptor