Пример #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public DockerHostFactory(
     ILoggerFactory loggerFactory,
     IFileSystem fileSystem,
     IProcessRunner processRunner,
     IOperationRunner operationRunner,
     DockerHostConfig hostConfig,
     IList <DockerContainerConfig> containerConfigs)
 {
     _loggerFactory    = loggerFactory;
     _fileSystem       = fileSystem;
     _processRunner    = processRunner;
     _operationRunner  = operationRunner;
     _hostConfig       = hostConfig;
     _containerConfigs = containerConfigs;
 }
Пример #2
0
		/// <summary>
		/// Constructor.
		/// </summary>
		public DockerHostFactory(
			ILoggerFactory loggerFactory,
			IFileSystem fileSystem,
			IProcessRunner processRunner,
			IOperationRunner operationRunner,
			DockerHostConfig hostConfig,
			IList<DockerContainerConfig> containerConfigs)
		{
			_loggerFactory = loggerFactory;
			_fileSystem = fileSystem;
			_processRunner = processRunner;
			_operationRunner = operationRunner;
			_hostConfig = hostConfig;
			_containerConfigs = containerConfigs;
		}
Пример #3
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;
 }
Пример #4
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;
		}