DefaultHttpControllerSelector Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class DefaultHttpControllerSelector _
    Implements IHttpControllerSelector
'Usage
Dim instance As DefaultHttpControllerSelector
public class DefaultHttpControllerSelector : IHttpControllerSelector
public ref class DefaultHttpControllerSelector : IHttpControllerSelector
type DefaultHttpControllerSelector =  
    class 
        interface IHttpControllerSelector 
    end
public class DefaultHttpControllerSelector implements IHttpControllerSelector

The DefaultHttpControllerSelector type exposes the following members.

Constructors

  Name Description
Public method DefaultHttpControllerSelector Initializes a new instance of the DefaultHttpControllerSelector class.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetControllerMapping Returns a map, keyed by controller string, of all HttpControllerDescriptor that the selector can select.
Public method GetControllerName Gets the name of the controller for the specified HttpRequestMessage.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method SelectController Selects a HttpControllerDescriptor for the given HttpRequestMessage.
Public method ToString (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member ControllerSuffix Specifies the suffix string in the controller name.

Top

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

Reference

System.Web.Http.Dispatcher Namespace