dotnet / dotnet/AspNetCore.Docs

Document default middleware

Open
#30,963 2 comments 0 reactions 1 assignee Claimed by @tdykstra View on GitHub
re-Aditya
Dominant language
C#
Stars
13.1k
Forks
24.6k
Avg merge
1d 3h
Merged PRs (30d)
97

Description

***EDIT by @Rick-Anderson***

add new section,
### Default middleware added in development mode and in non-development mode.

***END of EDIT***

### Discussed in https://github.com/dotnet/AspNetCore.Docs/discussions/30056

Originally posted by **lindeberg** August 15, 2023
Is UseExceptionHandler included in WebApplication-middleware by default?

It seems like that, since exceptions are being logged without adding the middleware manually. I see no difference when adding it. Id so, why is it not documented?

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: 9898482c-fa54-7ce2-1716-d14fbe03990d
* Version Independent ID: 3926c686-0ccc-f9fe-ca52-0134612a1623
* Content: [ASP.NET Core Middleware](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/middleware#create-a-middleware-pipeline-with-iapplicationbuilder)
* Content Source: [aspnetcore/fundamentals/middleware/index.md](https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/middleware/index.md)
* Product: **aspnet-core**
* Technology: **aspnetcore-fundamentals**
* GitHub Login: @Rick-Anderson
* Microsoft Alias: **riande**

---

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.