private TestcontainersClient( IDockerContainerOperations containerOperations, IDockerImageOperations imageOperations, IDockerSystemOperations systemOperations, DockerRegistryAuthenticationProvider registryAuthenticationProvider) { this.containers = containerOperations; this.images = imageOperations; this.system = systemOperations; this.registryAuthenticationProvider = registryAuthenticationProvider; }
private TestcontainersClient( TestcontainersRegistryService registryService, IDockerContainerOperations containerOperations, IDockerImageOperations imageOperations, IDockerSystemOperations systemOperations) { this.registryService = registryService; this.containers = containerOperations; this.images = imageOperations; this.system = systemOperations; AppDomain.CurrentDomain.ProcessExit += (sender, args) => this.PurgeOrphanedContainers(); Console.CancelKeyPress += (sender, args) => this.PurgeOrphanedContainers(); }