Microsoft.AspNetCore.Routing
Initializes a fast .
This constructor does not cache the helper. For caching, use .
Gets the backing .
Gets (or sets in derived types) the property name.
Gets the property value getter.
Gets the property value setter.
Returns the property value for the specified .
The object whose property value will be returned.
The property value.
Sets the property value for the specified .
The object whose property value will be set.
The property value.
Creates and caches fast property helpers that expose getters for every public get property on the
underlying type.
the instance to extract property accessors for.
a cached array of all public property getters from the underlying type of target instance.
Creates and caches fast property helpers that expose getters for every public get property on the
specified type.
the type to extract property accessors for.
a cached array of all public property getters from the type of target instance.
Creates and caches fast property helpers that expose getters for every non-hidden get property
on the specified type.
excludes properties defined on base types that have been
hidden by definitions using the new keyword.
The instance to extract property accessors for.
A cached array of all public property getters from the instance's type.
Creates and caches fast property helpers that expose getters for every non-hidden get property
on the specified type.
excludes properties defined on base types that have been
hidden by definitions using the new keyword.
The type to extract property accessors for.
A cached array of all public property getters from the type.
Creates a single fast property getter. The result is not cached.
propertyInfo to extract the getter for.
a fast getter.
This method is more memory efficient than a dynamically compiled lambda, and about the
same speed.
Creates a single fast property getter which is safe for a null input object. The result is not cached.
propertyInfo to extract the getter for.
a fast getter.
This method is more memory efficient than a dynamically compiled lambda, and about the
same speed.
Creates a single fast property setter for reference types. The result is not cached.
propertyInfo to extract the setter for.
a fast getter.
This method is more memory efficient than a dynamically compiled lambda, and about the
same speed. This only works for reference types.
Given an object, adds each instance property with a public get method as a key and its
associated value to a dictionary.
If the object is already an instance, then a copy
is returned.
The implementation of PropertyHelper will cache the property accessors per-type. This is
faster when the the same type is used multiple times with ObjectToDictionary.
Contains extension methods to .
Adds services required for routing requests.
The to add the services to.
The so that additional calls can be chained.
Adds services required for routing requests.
The to add the services to.
The routing options to configure the middleware with.
The so that additional calls can be chained.
The default implementation of . 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.
Initializes a new instance of the class.
Accessor for containing the constraints of interest.
A typical constraint looks like the following
"exampleConstraint(arg1, arg2, 12)".
Here if the type registered for exampleConstraint has a single constructor with one argument,
The entire string "arg1, arg2, 12" will be treated as a single argument.
In all other cases arguments are split at comma.
Defines an abstraction for resolving inline constraints as instances of .
Resolves the inline constraint.
The inline constraint to resolve.
The the inline constraint was resolved to.
Defines a contract for a route builder in an application. A route builder specifies the routes for
an application.
Gets the .
Gets or sets the default that is used as a handler if an
is added to the list of routes but does not specify its own.
Gets the sets the used to resolve services for routes.
Gets the routes configured in the builder.
Builds an that routes the routes specified in the property.
Adds a route to the for the given , and
.
The .
The route template.
The route handler.
A reference to the after this operation has completed.
Adds a route to the for the given , and
.
The .
The route template.
The action to apply to the .
A reference to the after this operation has completed.
Adds a route to the that only matches HTTP DELETE requests for the given
, and .
The .
The route template.
The route handler.
A reference to the after this operation has completed.
Adds a route to the that only matches HTTP DELETE requests for the given
, and .
The .
The route template.
The action to apply to the .
A reference to the after this operation has completed.
Adds a route to the that only matches HTTP GET requests for the given
, and .
The .
The route template.
The route handler.
A reference to the after this operation has completed.
Adds a route to the that only matches HTTP GET requests for the given
, and .
The .
The route template.
The action to apply to the .
A reference to the after this operation has completed.
Adds a route to the that only matches HTTP POST requests for the given
, and .
The .
The route template.
The route handler.
A reference to the after this operation has completed.
Adds a route to the that only matches HTTP POST requests for the given
, and .
The .
The route template.
The action to apply to the .
A reference to the after this operation has completed.
Adds a route to the that only matches HTTP PUT requests for the given
, and .
The .
The route template.
The route handler.
A reference to the after this operation has completed.
Adds a route to the that only matches HTTP PUT requests for the given
, and .
The .
The route template.
The action to apply to the .
A reference to the after this operation has completed.
Adds a route to the that only matches HTTP requests for the given
, , and .
The .
The HTTP verb allowed by the route.
The route template.
The route handler.
A reference to the after this operation has completed.
Adds a route to the that only matches HTTP requests for the given
, , and .
The .
The HTTP verb allowed by the route.
The route template.
The action to apply to the .
A reference to the after this operation has completed.
A builder for produding a mapping of keys to see .
allows iterative building a set of route constraints, and will
merge multiple entries for the same key.
Creates a new instance.
The .
The display name (for use in error messages).
Builds a mapping of constraints.
An of the constraints.
Adds a constraint instance for the given key.
The key.
The constraint instance. Must either be a string or an instance of .
If the is a string, it will be converted to a .
For example, the string Product[0-9]+
will be converted to the regular expression
^(Product[0-9]+)
. See for more details.
Adds a constraint for the given key, resolved by the .
The key.
The text to be resolved by .
The can create instances
based on . See to register
custom constraint types.
Sets the given key as optional.
The key.
Gets or sets a value indicating whether all generated URLs are lower-case.
Gets or sets a value indicating whether a trailing slash should be appended to the generated URLs.
An implementation that compares objects as-if
they were route value strings.
Values that are are not strings are converted to strings using
Convert.ToString(x, CultureInfo.InvariantCulture). null values are converted
to the empty string.
strings are compared using .
Constrains a route parameter to contain only lowercase or uppercase letters A through Z in the English alphabet.
Initializes a new instance of the class.
Constrains a route parameter to represent only Boolean values.
Constrains a route by several child constraints.
Initializes a new instance of the class.
The child constraints that must match for this constraint to match.
Gets the child constraints that must match for this constraint to match.
Constrains a route parameter to represent only values.
This constraint tries to parse strings by using all of the formats returned by the
CultureInfo.InvariantCulture.DateTimeFormat.GetAllDateTimePatterns() method.
For a sample on how to list all formats which are considered, please visit
http://msdn.microsoft.com/en-us/library/aszyst2c(v=vs.110).aspx
Constrains a route parameter to represent only decimal values.
Constrains a route parameter to represent only 64-bit floating-point values.
Constrains a route parameter to represent only 32-bit floating-point values.
Constrains a route parameter to represent only values.
Matches values specified in any of the five formats "N", "D", "B", "P", or "X",
supported by Guid.ToString(string) and Guid.ToString(String, IFormatProvider) methods.
Constrains the HTTP method of request or a route.
Creates a new that accepts the HTTP methods specified
by .
The allowed HTTP methods.
Gets the HTTP methods allowed by the constraint.
Constrains a route parameter to represent only 32-bit integer values.
Constrains a route parameter to be a string of a given length or within a given range of lengths.
Initializes a new instance of the class that constrains
a route parameter to be a string of a given length.
The length of the route parameter.
Initializes a new instance of the class that constrains
a route parameter to be a string of a given length.
The minimum length allowed for the route parameter.
The maximum length allowed for the route parameter.
Gets the minimum length allowed for the route parameter.
Gets the maximum length allowed for the route parameter.
Constrains a route parameter to represent only 64-bit integer values.
Constrains a route parameter to be a string with a maximum length.
Initializes a new instance of the class.
The maximum length allowed for the route parameter.
Gets the maximum length allowed for the route parameter.
Constrains a route parameter to be an integer with a maximum value.
Initializes a new instance of the class.
The maximum value allowed for the route parameter.
Gets the maximum allowed value of the route parameter.
Constrains a route parameter to be a string with a minimum length.
Initializes a new instance of the class.
The minimum length allowed for the route parameter.
Gets the minimum length allowed for the route parameter.
Constrains a route parameter to be a long with a minimum value.
Initializes a new instance of the class.
The minimum value allowed for the route parameter.
Gets the minimum allowed value of the route parameter.
Defines a constraint on an optional parameter. If the parameter is present, then it is constrained by InnerConstraint.
Constraints a route parameter to be an integer within a given range of values.
Initializes a new instance of the class.
The minimum value.
The maximum value.
The minimum value should be less than or equal to the maximum value.
Gets the minimum allowed value of the route parameter.
Gets the maximum allowed value of the route parameter.
Represents a regex constraint which can be used as an inlineConstraint.
Initializes a new instance of the class.
The regular expression pattern to match.
Constraints a route parameter that must have a value.
This constraint is primarily used to enforce that a non-parameter value is present during
URL generation.
A marker class used to determine if all the routing services were added
to the before routing is configured.
Value must be greater than or equal to {0}.
Value must be greater than or equal to {0}.
The value for argument '{0}' should be less than or equal to the value for the argument '{1}'.
The value for argument '{0}' should be less than or equal to the value for the argument '{1}'.
The '{0}' property of '{1}' must not be null.
The '{0}' property of '{1}' must not be null.
The supplied route name '{0}' is ambiguous and matched more than one route.
The supplied route name '{0}' is ambiguous and matched more than one route.
A default handler must be set on the RouteCollection.
A default handler must be set on the RouteCollection.
The constructor to use for activating the constraint type '{0}' is ambiguous. Multiple constructors were found with the following number of parameters: {1}.
The constructor to use for activating the constraint type '{0}' is ambiguous. Multiple constructors were found with the following number of parameters: {1}.
Could not find a constructor for constraint type '{0}' with the following number of parameters: {1}.
Could not find a constructor for constraint type '{0}' with the following number of parameters: {1}.
The constraint type '{0}' which is mapped to constraint key '{1}' must implement the '{2}' interface.
The constraint type '{0}' which is mapped to constraint key '{1}' must implement the '{2}' interface.
A path segment that contains more than one section, such as a literal section or a parameter, cannot contain a catch-all parameter.
A path segment that contains more than one section, such as a literal section or a parameter, cannot contain a catch-all parameter.
The route parameter '{0}' has both an inline default value and an explicit default value specified. A route parameter cannot contain an inline default value when a default value is specified explicitly. Consider removing one of them.
The route parameter '{0}' has both an inline default value and an explicit default value specified. A route parameter cannot contain an inline default value when a default value is specified explicitly. Consider removing one of them.
A path segment cannot contain two consecutive parameters. They must be separated by a '/' or by a literal string.
A path segment cannot contain two consecutive parameters. They must be separated by a '/' or by a literal string.
The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value.
The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value.
A catch-all parameter cannot be marked optional.
A catch-all parameter cannot be marked optional.
An optional parameter cannot have default value.
An optional parameter cannot have default value.
A catch-all parameter can only appear as the last segment of the route template.
A catch-all parameter can only appear as the last segment of the route template.
The literal section '{0}' is invalid. Literal sections cannot contain the '?' character.
The literal section '{0}' is invalid. Literal sections cannot contain the '?' character.
The route parameter name '{0}' is invalid. Route parameter names must be non-empty and cannot contain these characters: '{{', '}}', '/'. The '?' character marks a parameter as optional, and can occur only at the end of the parameter. The '*' character marks a parameter as catch-all, and can occur only at the start of the parameter.
The route parameter name '{0}' is invalid. Route parameter names must be non-empty and cannot contain these characters: '{{', '}}', '/'. The '?' character marks a parameter as optional, and can occur only at the end of the parameter. The '*' character marks a parameter as catch-all, and can occur only at the start of the parameter.
The route template cannot start with a '/' or '~' character.
The route template cannot start with a '/' or '~' character.
There is an incomplete parameter in the route template. Check that each '{' character has a matching '}' character.
There is an incomplete parameter in the route template. Check that each '{' character has a matching '}' character.
The route parameter name '{0}' appears more than one time in the route template.
The route parameter name '{0}' appears more than one time in the route template.
The constraint entry '{0}' - '{1}' on the route '{2}' must have a string value or be of a type which implements '{3}'.
The constraint entry '{0}' - '{1}' on the route '{2}' must have a string value or be of a type which implements '{3}'.
The constraint entry '{0}' - '{1}' on the route '{2}' could not be resolved by the constraint resolver of type '{3}'.
The constraint entry '{0}' - '{1}' on the route '{2}' could not be resolved by the constraint resolver of type '{3}'.
In a route parameter, '{' and '}' must be escaped with '{{' and '}}'
In a route parameter, '{' and '}' must be escaped with '{{' and '}}'
In the segment '{0}', the optional parameter '{1}' is preceded by an invalid segment '{2}'. Only a period (.) can precede an optional parameter.
In the segment '{0}', the optional parameter '{1}' is preceded by an invalid segment '{2}'. Only a period (.) can precede an optional parameter.
An optional parameter must be at the end of the segment. In the segment '{0}', optional parameter '{1}' is followed by '{2}'.
An optional parameter must be at the end of the segment. In the segment '{0}', optional parameter '{1}' is followed by '{2}'.
Two or more routes named '{0}' have different templates.
Two or more routes named '{0}' have different templates.
Unable to find the required services. Please add all the required services by calling '{0}.{1}' inside the call to '{2}' in the application startup code.
Unable to find the required services. Please add all the required services by calling '{0}.{1}' inside the call to '{2}' in the application startup code.
The parsed representation of an inline constraint in a route parameter.
Creates a new .
The constraint text.
Gets the constraint text.
Computes precedence for a route template.
Gets the parameter matching the given name.
The name of the parameter to match.
The matching parameter or null if no parameter matches the given name.
Compares two objects for equality as parts of a case-insensitive path.
An object to compare.
An object to compare.
True if the object are equal, otherwise false.
The values used as inputs for constraints and link generation.
The set of values that will appear in the URL.
The set of values that that were supplied for URL generation.
This combines implicit (ambient) values from the of the current request
(if applicable), explictly provided values, and default values for parameters that appear in
the route template.
Implicit (ambient) values which are invalidated due to changes in values lexically earlier in the
route template are excluded from this set.
A candidate route to match incoming URLs in a .
Gets or sets the .
Gets or sets the .
Used to build an . Represents a URL template tha will be used to match incoming
request URLs.
Gets or sets the route constraints.
Gets or sets the route defaults.
Gets or sets the to invoke when this entry matches.
Gets or sets the order of the entry.
Entries are ordered first by (ascending) then by (descending).
Gets or sets the precedence of the entry.
Entries are ordered first by (ascending) then by (descending).
Gets or sets the name of the route.
Gets or sets the .
A candidate match for link generation in a .
Gets or sets the .
Gets or sets the .
Used to build a . Represents a URL template that will be used to generate
outgoing URLs.
Gets or sets the route constraints.
Gets or sets the route defaults.
The to invoke when this entry matches.
Gets or sets the order of the entry.
Entries are ordered first by (ascending) then by (descending).
Gets or sets the precedence of the template for link generation. A greater value of
means that an entry is considered first.
Entries are ordered first by (ascending) then by (descending).
Gets or sets the name of the route.
Gets or sets the set of values that must be present for link genration.
Gets or sets the .
Builder for instances.
Initializes a new instance of .
The .
The .
The .
The .
Adds a new inbound route to the .
The for handling the route.
The of the route.
The route name.
The route order.
The .
Adds a new outbound route to the .
The for handling the link generation.
The of the route.
The containing the route values.
The route name.
The route order.
The .
Gets the list of .
Gets the list of .
Builds a with the
and defined in this .
The .
Builds a with the
and defined in this .
The version of the .
The .
Removes all and from this
.
An implementation for attribute routing.
Creates a new .
The list of that contains the route entries.
The set of .
The .
The .
The instance.
The instance used
in .
The version of this route.
Gets the version of this route.
A node in a .
Initializes a new instance of .
The length of the path to this node in the .
Gets the length of the path to this node in the .
Gets or sets a value indicating whether this node represents a catch all segment.
Gets the list of matching route entries associated with this node.
These entries are sorted by precedence then template.
Gets the literal segments following this segment.
Gets or sets the representing
parameter segments with constraints following this segment in the .
Gets or sets the representing
parameter segments following this segment in the .
Gets or sets the representing
catch all parameter segments with constraints following this segment in the .
Gets or sets the representing
catch all parameter segments following this segment in the .
A tree part of a .
Initializes a new instance of .
The order associated with routes in this .
Gets the order of the routes associated with this .
Gets the root of the .
Extension methods for adding the middleware to an .
Adds a middleware to the specified with the specified .
The to add the middleware to.
The to use for routing requests.
A reference to this instance after the operation has completed.
Provides extension methods for to add routes.
Adds a route to the with the specified name and template.
The to add the route to.
The name of the route.
The URL pattern of the route.
A reference to this instance after the operation has completed.
Adds a route to the with the specified name, template, and default values.
The to add the route to.
The name of the route.
The URL pattern of the route.
An object that contains default values for route parameters. The object's properties represent the names
and values of the default values.
A reference to this instance after the operation has completed.
Adds a route to the with the specified name, template, default values, and
constraints.
The to add the route to.
The name of the route.
The URL pattern of the route.
An object that contains default values for route parameters. The object's properties represent the names
and values of the default values.
An object that contains constraints for the route. The object's properties represent the names and values
of the constraints.
A reference to this instance after the operation has completed.
Adds a route to the with the specified name, template, default values, and
data tokens.
The to add the route to.
The name of the route.
The URL pattern of the route.
An object that contains default values for route parameters. The object's properties represent the names
and values of the default values.
An object that contains constraints for the route. The object's properties represent the names and values
of the constraints.
An object that contains data tokens for the route. The object's properties represent the names and values
of the data tokens.
A reference to this instance after the operation has completed.