Skip to content

Conversation

@neuecc
Copy link
Member

@neuecc neuecc commented Sep 7, 2025

The current HostApplicationBuilder integration only uses ServiceProvider.
However, some systems used in HostApplicationBuilder are initialized at Start (for example, OpenTelemetry), so they don't work correctly.
Therefore, we Start/Stop IHost before and after ConsoleAppFramework's Run.

@neuecc neuecc merged commit 3082cfc into master Sep 7, 2025
1 check passed
@neuecc neuecc deleted the host_start branch September 7, 2025 07:53
@neuecc neuecc changed the title HostApplicationBuilder.ToConsoleApp host calls StartAsync and StopAsy… HostApplicationBuilder.ToConsoleApp host calls StartAsync and StopAsync Sep 7, 2025
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