Esempio n. 1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public DockerHost(
     ILogger <DockerHost> logger,
     IFileSystem fileSystem,
     IProcessRunner processRunner,
     IOperationRunner operationRunner,
     DockerHostConfig hostConfig,
     DockerContainerConfig containerConfig,
     Func <string> containerNameGenerator)
 {
     _logger                 = logger;
     _fileSystem             = fileSystem;
     _processRunner          = processRunner;
     _operationRunner        = operationRunner;
     _hostConfig             = hostConfig;
     _containerConfig        = containerConfig;
     _containerNameGenerator = containerNameGenerator;
 }
Esempio n. 2
0
		/// <summary>
		/// Constructor.
		/// </summary>
		public DockerHost(
			ILogger<DockerHost> logger, 
			IFileSystem fileSystem,
			IProcessRunner processRunner,
			IOperationRunner operationRunner,
			DockerHostConfig hostConfig, 
			DockerContainerConfig containerConfig,
			Func<string> containerNameGenerator)
		{
			_logger = logger;
			_fileSystem = fileSystem;
			_processRunner = processRunner;
			_operationRunner = operationRunner;
			_hostConfig = hostConfig;
			_containerConfig = containerConfig;
			_containerNameGenerator = containerNameGenerator;
		}