Esempio n. 1
0
 public static DockerRunner Create(DockerRunnerTask task, ILogger logger, ITempPathProvider?tempPathProvider = null)
 {
     if (task.ServiceContainer is null)
     {
         return(new DockerRunnerSingleContainer(task, logger, tempPathProvider));
     }
     else
     {
         return(new DockerRunnerMultiContainer(task, logger, tempPathProvider));
     }
 }
Esempio n. 2
0
 protected DockerRunner(DockerRunnerTask task, ILogger logger, ITempPathProvider?tempPathProvider = null)
 {
     this.task             = task ?? throw new ArgumentNullException(nameof(task));
     this.logger           = logger ?? throw new ArgumentNullException(nameof(logger));
     this.tempPathProvider = tempPathProvider ?? DefaultTempPathProvider.Instance;
 }
Esempio n. 3
0
 public DockerRunnerSingleContainer(DockerRunnerTask task, ILogger logger, ITempPathProvider?tempPathProvider = null)
     : base(task, logger, tempPathProvider)
 {
 }