Table of Contents

Class DefaultInlineConstraintResolver

Namespace
System.Web.Http.Routing
Assembly
System.Web.Http.dll

The default implementation of IInlineConstraintResolver. Resolves constraints by parsing a constraint key and constraint arguments, using a map to resolve the constraint type, and calling an appropriate constructor for the constraint type.

public class DefaultInlineConstraintResolver : IInlineConstraintResolver
Inheritance
DefaultInlineConstraintResolver
Implements
Inherited Members

Constructors

DefaultInlineConstraintResolver()

Initializes a new instance of the DefaultInlineConstraintResolver class.

public DefaultInlineConstraintResolver()

Properties

ConstraintMap

Gets the mutable dictionary that maps constraint keys to a particular constraint type.

public IDictionary<string, Type> ConstraintMap { get; }

Property Value

IDictionary<string, Type>

The mutable dictionary that maps constraint keys to a particular constraint type.

Methods

ResolveConstraint(string)

Resolves the inline constraint.

public virtual IHttpRouteConstraint ResolveConstraint(string inlineConstraint)

Parameters

inlineConstraint string

The inline constraint to resolve.

Returns

IHttpRouteConstraint

The IHttpRouteConstraint the inline constraint was resolved to.