Skip to content

Commit

Permalink
Clarify middleware ordering (dotnet#5802)
Browse files Browse the repository at this point in the history
  • Loading branch information
guardrex authored and scottaddie committed Mar 26, 2018
1 parent 1cb1dc3 commit 117d4d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aspnetcore/fundamentals/startup.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,13 @@ The [ASP.NET Core templates](/dotnet/core/tools/dotnet-new) configure the pipeli

[!code-csharp[](../common/samples/WebApplication1DotNetCore2.0App/Startup.cs?range=28-48&highlight=5,6,10,13,15)]

Each `Use` extension method adds a middleware component to the request pipeline. For instance, the `UseMvc` extension method adds the [routing middleware](xref:fundamentals/routing) to the request pipeline and configures [MVC](xref:mvc/overview) as the default handler.
Each `Use` extension method adds a middleware component to the request pipeline. For instance, the `UseMvc` extension method adds the [Routing Middleware](xref:fundamentals/routing) to the request pipeline and configures [MVC](xref:mvc/overview) as the default handler.

Each middleware component in the request pipeline is responsible for invoking the next component in the pipeline or short-circuiting the chain, if appropriate. If short-circuiting doesn't occur along the middleware chain, each middleware has a second chance to process the request before it's sent to the client.

Additional services, such as `IHostingEnvironment` and `ILoggerFactory`, may also be specified in the method signature. When specified, additional services are injected if they're available.

For more information on how to use `IApplicationBuilder`, see [Middleware](xref:fundamentals/middleware/index).
For more information on how to use `IApplicationBuilder` and the order of middleware processing, see [Middleware](xref:fundamentals/middleware/index).

## Convenience methods

Expand Down

0 comments on commit 117d4d1

Please sign in to comment.