Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions aspnetcore/fundamentals/configuration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ var builder = WebApplication.CreateBuilder(args);
1. [appsettings.json](#appsettingsjson) using the [JSON configuration provider](#jcp).
1. A fallback to the host configuration described in the [next section](#host).

Note: `WebApplication.CreateBuilder(args)` should only be called once.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Note: `WebApplication.CreateBuilder(args)` should only be called once.

Many of our docs use the same API many times, for example app.UseCors `https://learn.microsoft.com/en-us/aspnet/core/security/cors

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link we originally had here tells why you don't want to call this API multiple times but people tend to think it can or needs to be. Perhaps it would be good to put the link back in?
https://techcommunity.microsoft.com/blog/iis-support-blog/asp-net-core-503-server-has-been-shutdown/3830338

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure


<a name="host"></a>

### Default host configuration sources
Expand Down
Loading