Using routing DataTokens in ASP.NET Core

added by DotNetKicks
2/28/2017 3:59:21 PM

2 Kicks, 256 Views

ASP.NET Core uses routing to map incoming URLs to controllers and action methods, and also to generate URLs when you provide route parameters. One of the lesser known features of the routing infrastructure is data tokens. These are additional values that can be associated with a particular route, but don't affect the process of URL matching or generation at all.