fix: Do not dispose IConsole

pull/108/head
Robert Dailey 2 years ago
parent 9bf9290fae
commit 8cbb9d0b46

@ -24,6 +24,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Docker: Resolved errors related to `/tmp/.net` directory not existing. - Docker: Resolved errors related to `/tmp/.net` directory not existing.
- An exception that says "Cannot write to a closed TextWriter" would sometimes occur at the end of
running a command.
## [2.2.1] - 2022-06-18 ## [2.2.1] - 2022-06-18

@ -34,7 +34,7 @@ internal class CompositionRoot : ICompositionRoot
public IServiceLocatorProxy Setup(ContainerBuilder builder, string? appDataDir, IConsole console, public IServiceLocatorProxy Setup(ContainerBuilder builder, string? appDataDir, IConsole console,
LogEventLevel logLevel) LogEventLevel logLevel)
{ {
builder.RegisterInstance(console).As<IConsole>(); builder.RegisterInstance(console).As<IConsole>().ExternallyOwned();
RegisterAppPaths(builder, appDataDir); RegisterAppPaths(builder, appDataDir);
RegisterLogger(builder, logLevel); RegisterLogger(builder, logLevel);

Loading…
Cancel
Save