Skip to content

Commit 52bfbd4

Browse files
authored
Fix link to 6.0 MapWhen snippet (#24263)
1 parent 948cb47 commit 52bfbd4

File tree

1 file changed

+5
-5
lines changed
  • aspnetcore/fundamentals/middleware

1 file changed

+5
-5
lines changed

aspnetcore/fundamentals/middleware/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ uid: fundamentals/middleware/index
1111
---
1212
# ASP.NET Core Middleware
1313

14-
::: moniker range=">= aspnetcore-6.0"
14+
:::moniker range=">= aspnetcore-6.0"
1515

1616
By [Rick Anderson](https://twitter.com/RickAndMSFT) and [Steve Smith](https://ardalis.com/)
1717

@@ -221,7 +221,7 @@ app.Map("/level1", level1App => {
221221

222222
<xref:Microsoft.AspNetCore.Builder.MapWhenExtensions.MapWhen%2A> branches the request pipeline based on the result of the given predicate. Any predicate of type `Func<HttpContext, bool>` can be used to map requests to a new branch of the pipeline. In the following example, a predicate is used to detect the presence of a query string variable `branch`:
223223

224-
[!code-csharp[](index/snapshot/Chain/StartupMapWhen.cs?highlight=14-15)]
224+
[!code-csharp[](index/snapshot/Chain60/ProgramMapWhen.cs?highlight=4)]
225225

226226
The following table shows the requests and responses from `http://localhost:1234` using the previous code:
227227

@@ -279,9 +279,9 @@ ASP.NET Core ships with the following middleware components. The *Order* column
279279
* <xref:fundamentals/middleware/extensibility>
280280
* <xref:fundamentals/middleware/extensibility-third-party-container>
281281

282-
::: moniker-end
282+
:::moniker-end
283283

284-
::: moniker range="< aspnetcore-6.0"
284+
:::moniker range="< aspnetcore-6.0"
285285

286286
By [Rick Anderson](https://twitter.com/RickAndMSFT) and [Steve Smith](https://ardalis.com/)
287287

@@ -548,4 +548,4 @@ ASP.NET Core ships with the following middleware components. The *Order* column
548548
* <xref:fundamentals/middleware/extensibility>
549549
* <xref:fundamentals/middleware/extensibility-third-party-container>
550550

551-
::: moniker-end
551+
:::moniker-end

0 commit comments

Comments
 (0)