Skip to content

Commit 9675db7

Browse files
Merge pull request #17573 from dotnet/master
Master to live 2 April ?
2 parents 98001f2 + cb945fe commit 9675db7

48 files changed

Lines changed: 340 additions & 174 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

aspnetcore/fundamentals/routing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Discover how ASP.NET Core routing is responsible for matching HTTP
55
monikerRange: '>= aspnetcore-2.1'
66
ms.author: riande
77
ms.custom: mvc
8-
ms.date: 3/25/2020
8+
ms.date: 4/1/2020
99
uid: fundamentals/routing
1010
---
1111
# Routing in ASP.NET Core
@@ -217,7 +217,7 @@ The style of middleware shown with `Approach 1:` is **terminal middleware**. It'
217217
* The matching operation in the preceding sample is `Path == "/"` for the middleware and `Path == "/Movie"` for routing.
218218
* When a match is successful, it executes some functionality and returns, rather than invoking the `next` middleware.
219219

220-
It's called terminal middleware middleware because it terminates the search, executes some functionality, and then returns.
220+
It's called terminal middleware because it terminates the search, executes some functionality, and then returns.
221221

222222
Comparing a terminal middleware and routing:
223223
* Both approaches allow terminating the processing pipeline:
@@ -574,7 +574,7 @@ The preceding constraint is applied in the following code:
574574

575575
[!code-csharp[](routing/samples/3.x/RoutingSample/Controllers/TestController.cs?name=snippet&highlight=6,13)]
576576

577-
The [MyDisplayRouteInfo](https://github.com/dotnet/AspNetCore.Docs/tree/master/aspnetcore/fundamentals/routing/samples/3.x/RoutingSample/Extensions/ControllerContextExtensions.cs) method is included in the [sample download](https://github.com/dotnet/AspNetCore.Docs/tree/master/aspnetcore/fundamentals/routing/samples/3.x) and is used to display routing information.
577+
[!INCLUDE[](~/includes/MyDisplayRouteInfo.md)]
578578

579579
The implementation of `MyCustomConstraint` prevents `0` being applied to a route parameter:
580580

aspnetcore/fundamentals/routing/samples/3.x/RoutingSample/Controllers/GadgetController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Microsoft.AspNetCore.Mvc;
2-
2+
using Microsoft.Docs.Samples;
33

44
namespace RoutingSample.Controllers
55
{

aspnetcore/fundamentals/routing/samples/3.x/RoutingSample/Controllers/HomeController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Microsoft.AspNetCore.Mvc;
2-
2+
using Microsoft.Docs.Samples;
33

44
namespace RoutingSample.Controllers
55
{

aspnetcore/fundamentals/routing/samples/3.x/RoutingSample/Controllers/ProductController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Microsoft.AspNetCore.Mvc;
22
using Microsoft.AspNetCore.Routing;
3-
3+
using Microsoft.Docs.Samples;
44

55
namespace RoutingSample.Controllers
66
{

aspnetcore/fundamentals/routing/samples/3.x/RoutingSample/Controllers/TestController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Microsoft.AspNetCore.Http;
22
using Microsoft.AspNetCore.Mvc;
3-
3+
using Microsoft.Docs.Samples;
44

55
namespace RoutingSample.Controllers
66
{

aspnetcore/fundamentals/routing/samples/3.x/RoutingSample/Controllers/WidgetController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Microsoft.AspNetCore.Mvc;
22
using Microsoft.AspNetCore.Routing;
3-
3+
using Microsoft.Docs.Samples;
44

55
namespace RoutingSample.Controllers
66
{

aspnetcore/fundamentals/routing/samples/3.x/RoutingSample/Extensions/ControllerContextExtensions.cs

Lines changed: 0 additions & 31 deletions
This file was deleted.

aspnetcore/fundamentals/routing/samples/3.x/RoutingSample/RoutingSample.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<ItemGroup>
88
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.1.0" />
99
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.1" />
10+
<PackageReference Include="Rick.Docs.Samples.RouteInfo" Version="1.0.0*" />
1011
</ItemGroup>
11-
12+
1213
</Project>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[MyDisplayRouteInfo](https://github.com/Rick-Anderson/RouteInfo/blob/master/Microsoft.Docs.Samples.RouteInfo/ControllerContextExtensions.cs) is provided by the [Rick.Docs.Samples.RouteInfo](https://www.nuget.org/packages/Rick.Docs.Samples.RouteInfo) NuGet package and displays route information.
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
Support expected in version 8.6
2-
3-
<!-- * [Visual Studio for Mac version 8.6 or later](https://visualstudio.microsoft.com/vs/mac/)
4-
* [!INCLUDE [.NET 5.0 SDK](~/includes/5.0-SDK.md)] -->
1+
* [Visual Studio for Mac version 8.6 or later](/visualstudio/releasenotes/vs2019-mac-preview-relnotes)
2+
* [!INCLUDE [.NET 5.0 SDK](~/includes/5.0-SDK.md)]

0 commit comments

Comments
 (0)