コード例 #1
0
 public ProgramRunner(
     ISolutionsBase solutionsBase,
     IDockerClient dockerClient,
     RunningSettings runningSettings,
     ILogger <ProgramRunner> logger)
 {
     this.solutionsBase   = solutionsBase;
     this.dockerClient    = dockerClient;
     this.runningSettings = runningSettings;
     this.logger          = logger;
 }
コード例 #2
0
 public ExecuteWorker(
     Func <Guid, SolutionStatus, Task> processSolution,
     Func <Guid, BuildLogRequest, Task> saveBuildLogs,
     Func <Guid, Task <ExerciseData[]> > getTests,
     ISolutionsBase solutionsBase,
     IDockerClient dockerClient,
     RunningSettings runningSettings,
     StartSettings options,
     ILoggerFactory logger)
 {
     this.getTests = getTests;
     builder       = new ProgramBuilder(processSolution, saveBuildLogs, dockerClient, options, logger.CreateLogger <ProgramBuilder>());
     runner        = new ProgramRunner(solutionsBase, dockerClient, runningSettings, logger.CreateLogger <ProgramRunner>());
     this.logger   = logger.CreateLogger <ExecuteWorker>();
 }