public ProvisionControlledServerJob(ILogger <ProvisionControlledServerJob> logger, NotificationsEnabledDb database, IEC2Controller ec2Controller, IBackgroundJobClient jobClient, IControlledServerSSHAccess sshAccess) : base(logger, database) { this.ec2Controller = ec2Controller; this.jobClient = jobClient; this.sshAccess = sshAccess; }
public RunJobOnServerJob(ILogger <RunJobOnServerJob> logger, IConfiguration configuration, NotificationsEnabledDb database, IControlledServerSSHAccess controlledSSHAccess, IExternalServerSSHAccess externalSSHAccess, IBackgroundJobClient jobClient, IGithubCommitStatusReporter statusReporter, IGeneralRemoteDownloadUrls remoteDownloadUrls, IRemoteResourceHashCalculator hashCalculator) : base(logger, database, jobClient, statusReporter) { this.configuration = configuration; this.controlledSSHAccess = controlledSSHAccess; this.externalSSHAccess = externalSSHAccess; this.remoteDownloadUrls = remoteDownloadUrls; this.hashCalculator = hashCalculator; cleanThreshold = Convert.ToInt32(configuration["CI:ServerCleanUpDiskUsePercentage"]); }