Ejemplo n.º 1
0
        /// <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();
        }
Ejemplo n.º 2
0
        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;
 }
Ejemplo n.º 4
0
 public JobRunContextMockFactory(IJobRunProgressChannel progressChannel)
 {
     this.progressChannel = progressChannel;
 }
 public JobRunContextFactory(ForkedExecutionConfiguration configuration, IJobRunProgressChannel progressChannel)
 {
     this.configuration   = configuration;
     this.progressChannel = progressChannel;
 }
Ejemplo n.º 6
0
        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;
        }
Ejemplo n.º 7
0
 public ForkedExecutionController(IJobRunInformationService jobRunInformationService, IJobRunProgressChannel progressChannel)
 {
     this.jobRunInformationService = jobRunInformationService;
     this.progressChannel          = progressChannel;
 }