/// <summary> /// Initializes a new instance of the <see cref="JobRunContext"/> class. /// </summary> public JobRunContext(JobRunInfo jobRunInfoIfo, ForkedExecutionConfiguration configuration, IJobRunProgressChannel progressChannel) { this.jobRunInfo = jobRunInfoIfo; this.configuration = configuration; this.progressChannel = progressChannel; this.serviceMessageParser = new ServiceMessageParser(); }
public ForkedJobExecutor(IJobRunContextFactory jobRunContextFactory, IJobRunInformationService jobRunInformationService, IJobRunProgressChannel progressChannel, IPeriodicTimer periodicTimer, IDateTimeProvider dateTimeProvider, ForkedExecutionConfiguration configuration) { this.jobRunContextFactory = jobRunContextFactory; this.jobRunInformationService = jobRunInformationService; this.configuration = configuration; this.progressChannel = progressChannel; this.periodicTimer = periodicTimer; this.dateTimeProvider = dateTimeProvider; this.periodicTimer.Setup(this.StartReadyJobsFromQueue, StartNewJobsEverySeconds); }
public MockedJobContext(JobRunInfo jobRunInfo, IJobRunProgressChannel progressChannel) { this.jobRunInfo = jobRunInfo; this.progressChannel = progressChannel; }
public JobRunContextMockFactory(IJobRunProgressChannel progressChannel) { this.progressChannel = progressChannel; }
public JobRunContextFactory(ForkedExecutionConfiguration configuration, IJobRunProgressChannel progressChannel) { this.configuration = configuration; this.progressChannel = progressChannel; }
public ExposeAllServicesComponent(IJobbrServiceProvider serviceProvider, IArtefactsStorageProvider artefactsStorageProvider, IJobStorageProvider jobStorageProvider, IJobManagementService jobManagementService, IQueryService queryService, IServerManagementService managementService, IJobRunInformationService informationService, IJobRunProgressChannel progressChannel) { this.ServiceProvider = serviceProvider; this.ArtefactsStorageProvider = artefactsStorageProvider; this.JobStorageProvider = jobStorageProvider; this.JobManagementService = jobManagementService; this.QueryService = queryService; this.ManagementService = managementService; this.InformationService = informationService; this.ProgressChannel = progressChannel; instancesPerThread.Value = this; }
public ForkedExecutionController(IJobRunInformationService jobRunInformationService, IJobRunProgressChannel progressChannel) { this.jobRunInformationService = jobRunInformationService; this.progressChannel = progressChannel; }