public DockerContainerEngine(
     VmConfiguration vmConfiguration,
     MultiLogger logger,
     Core.Interfaces.ISystemOperations systemOperations,
     IDockerClient dockerClient         = null,
     bool shouldPublicPortMatchGamePort = false)
     : base(vmConfiguration, logger, systemOperations)
 {
     _dockerClient = dockerClient ?? CreateDockerClient();
     _shouldPublicPortMatchGamePort = shouldPublicPortMatchGamePort;
 }
Beispiel #2
0
 public DockerContainerEngine(
     VmConfiguration vmConfiguration,
     MultiLogger logger,
     Core.Interfaces.ISystemOperations systemOperations,
     IDockerClient dockerClient = null)
 {
     // This can be moved to dependency injection pattern when unit tests are added for this class.
     _logger           = logger;
     _vmConfiguration  = vmConfiguration;
     _systemOperations = systemOperations;
     _dockerClient     = dockerClient ?? CreateDockerClient();
 }