DefaultHttpControllerSelector Class

 

Represents a default IHttpControllerSelector instance for choosing a HttpControllerDescriptor given a HttpRequestMessage. A different implementation can be registered via the Services.

Namespace:   System.Web.Http.Dispatcher
Assembly:  System.Web.Http (in System.Web.Http.dll)

Inheritance Hierarchy

System.Object
  System.Web.Http.Dispatcher.DefaultHttpControllerSelector

Syntax

public class DefaultHttpControllerSelector : IHttpControllerSelector
public ref class DefaultHttpControllerSelector : IHttpControllerSelector
type DefaultHttpControllerSelector = 
    class
        interface IHttpControllerSelector
    end
Public Class DefaultHttpControllerSelector
    Implements IHttpControllerSelector

Constructors

Name Description
System_CAPS_pubmethod DefaultHttpControllerSelector(HttpConfiguration)

Initializes a new instance of the DefaultHttpControllerSelector class.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetControllerMapping()

Returns a map, keyed by controller string, of all HttpControllerDescriptor that the selector can select.

System_CAPS_pubmethod GetControllerName(HttpRequestMessage)

Gets the name of the controller for the specified HttpRequestMessage.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod SelectController(HttpRequestMessage)

Selects a HttpControllerDescriptor for the given HttpRequestMessage.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Fields

Name Description
System_CAPS_pubfieldSystem_CAPS_static ControllerSuffix

Specifies the suffix string in the controller name.

Thread Safety

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

See Also

System.Web.Http.Dispatcher Namespace

Return to top