Skip to content

Conversation

@Mpdreamz
Copy link
Contributor

@Mpdreamz Mpdreamz commented Aug 5, 2025

This allows the service provider wrapper to be asynchronously dispose from the generated app.RunAsync() method.

This method already checks if the provided IServiceProvider implements IAsyncDisposable.

This ensures ToConsoleAppBuilder always correctly disposes too.

This allows the service provider wrapper to be asynchronously dispose from the generated `app.RunAsync()` method.

This method already checks if the provided `IServiceProvider` implements `IAsyncDisposable`. 


This ensures `ToConsoleAppBuilder` always correctly disposes too.
@neuecc
Copy link
Member

neuecc commented Sep 7, 2025

Thank you.
Also, with the changes in #191, we will implement Start/Stop for IHost itself.
With this, ToConsoleAppBuilder should work correctly in most cases.

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