remove mkdocs specific syntax

This commit is contained in:
Marcello 2024-06-16 19:14:59 +02:00
parent 8d08c1964f
commit 8026e1465b
Signed by: m-lamonaca
SSH key fingerprint: SHA256:8db8uii6Gweq7TbKixFBioW2T8CbgtyFETyYL3cr3zk
77 changed files with 1128 additions and 1128 deletions

View file

@ -33,7 +33,7 @@ Short-circuiting is often desirable because it avoids unnecessary work.
It's possible to perform actions both *before* and *after* the next delegate:
```cs linenums="1"
```cs
// "inline" middleware, best if in own class
app.Use(async (context, next) =>
{
@ -45,7 +45,7 @@ app.Use(async (context, next) =>
`Run` delegates don't receive a next parameter. The first `Run` delegate is always terminal and terminates the pipeline.
```cs linenums="1"
```cs
// "inline" middleware, best if in own class
app.Use(async (context, next) =>
{
@ -69,7 +69,7 @@ The Endpoint middleware executes the filter pipeline for the corresponding app t
The order that middleware components are added in the `Startup.Configure` method defines the order in which the middleware components are invoked on requests and the reverse order for the response. The order is **critical** for security, performance, and functionality.
```cs linenums="1"
```cs
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
@ -121,7 +121,7 @@ Unlike with `MapWhen`, this branch is rejoined to the main pipeline if it doesn'
Middleware is generally encapsulated in a class and exposed with an extension method.
```cs linenums="1"
```cs
public class CustomMiddleware
{
private readonly RequestDelegate _next;
@ -152,7 +152,7 @@ The middleware class **must** include:
## Middleware Extension Methods
```cs linenums="1"
```cs
using Microsoft.AspNetCore.Builder;
public static class MiddlewareExtensions
@ -164,7 +164,7 @@ public static class MiddlewareExtensions
}
```
```cs linenums="1"
```cs
// other middlewares
app.UseCustom(); // add custom middleware in the pipeline