pull/2317/head
Charlie Chu 2016-12-05 15:06:15 +08:00 committed by GitHub
parent c1f6e371a0
commit 548c18a2d6
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ Routing provides the `Route` class as the standard implementation of `IRouter`.
Most applications will create routes by calling `MapRoute` or one of the similar extension methods defined on `IRouteBuilder`. All of these methods will create an instance of `Route` and add it to the route collection.
> [!NOTE]
> `MapRoute` doesn't take a route handler parameter - it only adds routes that will be handled by the `DefaultHandler`. Since the default handler is an `IRouter`, it may decide not to handle the request. For example, ASP.NET MVC is typically configured as a default handler that only handles requests that match an available controller and action. To learn more about routing to MVC, see [ðŸ"§ Routing to Controller Actions](../mvc/controllers/routing.md).
> `MapRoute` doesn't take a route handler parameter - it only adds routes that will be handled by the `DefaultHandler`. Since the default handler is an `IRouter`, it may decide not to handle the request. For example, ASP.NET MVC is typically configured as a default handler that only handles requests that match an available controller and action. To learn more about routing to MVC, see [Routing to Controller Actions](../mvc/controllers/routing.md).
This is an example of a `MapRoute` call used by a typical ASP.NET MVC route definition: