Skip to content

Support HostApplicationBuildersSettings for framework application (#665) - #667

Merged
twsouthwick merged 6 commits into
dotnet:mainfrom
EmperorArthur:HostApplicationBuilderSettings
Feb 26, 2026
Merged

Support HostApplicationBuildersSettings for framework application (#665)#667
twsouthwick merged 6 commits into
dotnet:mainfrom
EmperorArthur:HostApplicationBuilderSettings

Conversation

@EmperorArthur

Copy link
Copy Markdown
Contributor

This updates HttpApplicationHost.CreateBuilder to more closely match HostApplicationBuilder's constructor. Supports setting any HostDefaults value via configuration or a HostApplicationBuildersSettings instance. This allows even more patterns used in modern ASP.NET Core applications to be available in ASP.NET Framework, including setting the application name and environment.

@EmperorArthur

Copy link
Copy Markdown
Contributor Author

@dotnet-policy-service agree company="MOHELA"

@twsouthwick twsouthwick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Overall looks good. A few comments mostly about keeping the change scoped to the issue at hand

Comment thread src/Microsoft.AspNetCore.SystemWebAdapters.FrameworkServices/README.md Outdated
@EmperorArthur
EmperorArthur force-pushed the HostApplicationBuilderSettings branch 2 times, most recently from 38eaa43 to ef27592 Compare February 24, 2026 22:17
@EmperorArthur

EmperorArthur commented Feb 24, 2026

Copy link
Copy Markdown
Contributor Author

Changes made, and scope limited. Appreciate the feedback. Sometimes it's easy to get lost in the weeds and go too far.

Edit: We can have the conversation once you're happy with this. Don't want to let a broader discussion distract from fixing a real bug.

…tnet#665)

This updates HttpApplicationHost.CreateBuilder to more closely match HostApplicationBuilder's constructor.  Supports setting any HostDefaults value via configuration or a HostApplicationBuildersSettings instance. This allows even more patterns used in modern ASP.NET Core applications to be available in ASP.NET Framework, including setting the application name and environment.
@EmperorArthur
EmperorArthur force-pushed the HostApplicationBuilderSettings branch from ef27592 to 7a88f1e Compare February 24, 2026 22:27
…osting/ConfigurationManagerConfigExtensions.cs
@twsouthwick

Copy link
Copy Markdown
Member

great - this looks great. thanks for limiting the scope - feel free to start an issue to discuss the pattern for initializing the host

@twsouthwick
twsouthwick enabled auto-merge (squash) February 26, 2026 18:08
@twsouthwick
twsouthwick merged commit 6981bd1 into dotnet:main Feb 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants