You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ImageBuilder does not start the generic application host #2124
Currently, ImageBuilder builds a Microsoft.Extensions.Hosting application host for dependency injection, but it only exposes the host's service provider and never starts, stops, or disposes the host.
This means disposable singleton services owned by the DI container, such as services registered by framework extensions like AddMemoryCache(), may not get cleaned up when the CLI exits. It also makes it hard to rely on normal IHost lifetime behavior if future services need startup/shutdown hooks.
We should retain the built host and run command execution inside an explicit host lifetime, then stop and dispose it on success and failure. At minimum, the root service provider/host should be disposed after the command completes so DI-owned disposable services are released deterministically.
Activity
Write build matrix variables directly to stdout (#2125)
Start and dispose the generic application host in ImageBuilder (dotne…