Skip to content

Refactor web host config into ConfigureWebHost method#1723

Merged
StuartFerguson merged 2 commits intomasterfrom
refactor/#1701_reduce_lines_in_createhostbuilder
Apr 8, 2026
Merged

Refactor web host config into ConfigureWebHost method#1723
StuartFerguson merged 2 commits intomasterfrom
refactor/#1701_reduce_lines_in_createhostbuilder

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

Extract web host configuration logic from CreateHostBuilder into a new private static ConfigureWebHost method in Program.cs. This improves code organization and readability without changing functionality. All configuration loading and Sentry setup logic is preserved in the new method.

closes #1701

Extract web host configuration logic from CreateHostBuilder into a new private static ConfigureWebHost method in Program.cs. This improves code organization and readability without changing functionality. All configuration loading and Sentry setup logic is preserved in the new method.
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 7 complexity · 0 duplication

Metric Results
Complexity 7
Duplication 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@StuartFerguson StuartFerguson merged commit c7a39d9 into master Apr 8, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Complexity] Method Program::CreateHostBuilder has 72 lines of code (limit is 50)

1 participant