Update routing.md (#9125)

* Update routing.md

* Add missing comma
pull/9137/head
Rick Anderson 2018-10-19 11:55:51 -10:00 committed by GitHub
parent c12382315f
commit c9a8c4b689
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -552,6 +552,10 @@ Actions are either conventionally routed or attribute routed. Placing a route on
> [!NOTE]
> What distinguishes the two types of routing systems is the process applied after a URL matches a route template. In conventional routing, the route values from the match are used to choose the action and controller from a lookup table of all conventional routed actions. In attribute routing, each template is already associated with an action, and no further lookup is needed.
## Complex segments
Complex segments (for example, `[Route("/dog{token}cat")]`), are processed by matching up literals from right to left in a non-greedy way. See [the source code](https://github.com/aspnet/Routing/blob/9cea167cfac36cf034dbb780e3f783114ef94780/src/Microsoft.AspNetCore.Routing/Patterns/RoutePatternMatcher.cs#L296) for a description. For more information, see [this issue](https://github.com/aspnet/Docs/issues/8197).
<a name="routing-url-gen-ref-label"></a>
## URL Generation