RouteConstraintBuilder Class

Definition

A builder for produding a mapping of keys to see IRouteConstraint.

public ref class RouteConstraintBuilder
public class RouteConstraintBuilder
type RouteConstraintBuilder = class
Public Class RouteConstraintBuilder
Inheritance
RouteConstraintBuilder

Remarks

RouteConstraintBuilder allows iterative building a set of route constraints, and will merge multiple entries for the same key.

Constructors

RouteConstraintBuilder(IInlineConstraintResolver, String)

Creates a new instance of RouteConstraintBuilder instance.

Methods

AddConstraint(String, Object)

Adds a constraint instance for the given key.

AddResolvedConstraint(String, String)

Adds a constraint for the given key, resolved by the IInlineConstraintResolver.

Build()

Builds a mapping of constraints.

SetOptional(String)

Sets the given key as optional.

Applies to