예제 #1
0
 public ScheduledJobSynchronizer(
     IScheduledJobRepository scheduledJobRepository,
     IScheduledJobExecutor scheduledJobExecutor,
     IConfigurationReader configurationReader)
 {
     Logger.Information("ScheduledJobSynchronizer initialized.");
     _scheduledJobRepository = scheduledJobRepository;
     _scheduledJobExecutor   = scheduledJobExecutor;
     _configurationReader    = configurationReader;
 }
예제 #2
0
 public SetupController(IInstallService installService,
                        IStorageService storageService,
                        IContentRepository contentRepository,
                        ReferenceConverter referenceConverter,
                        ISiteDefinitionRepository siteDefinitionRepository,
                        IScheduledJobExecutor scheduledJobExecutor,
                        IScheduledJobRepository scheduledJobRepository) :
     base(installService, storageService, contentRepository, referenceConverter, siteDefinitionRepository, scheduledJobExecutor, scheduledJobRepository)
 {
 }
예제 #3
0
        public void JobStartManually <T>() where T : ScheduledJobBase
        {
            var job = _scheduledJobRepo.Get("Execute", typeof(T).FullName, typeof(T).Assembly.GetName().Name);

            if (!job.IsRunning)
            {
                IScheduledJobExecutor exec = ServiceLocator.Current.GetInstance <IScheduledJobExecutor>();
                exec.StartAsync(job);
                Thread.Sleep(500);
            }
        }
예제 #4
0
        public void VGJobStartManually()
        {
            var job = _scheduledJobRepo.Get("Execute", "N1990.Episerver.Cms.Audit.Business.VisitorGroupAudit", "N1990.Episerver.Cms.Audit");

            if (!job.IsRunning)
            {
                IScheduledJobExecutor exec = ServiceLocator.Current.GetInstance <IScheduledJobExecutor>();
                exec.StartAsync(job);
                Thread.Sleep(500);
            }
        }
예제 #5
0
        private static void RunIndexJob(IScheduledJobExecutor scheduledJobExecutor, IScheduledJobRepository scheduledJobRepository, Guid jobId)
        {
            var job = scheduledJobRepository.Get(jobId);

            if (job == null)
            {
                return;
            }

            scheduledJobExecutor.StartAsync(job, new JobExecutionOptions {
                Trigger = ScheduledJobTrigger.User
            });
        }
예제 #6
0
 public FoundationConfigurationController(IInstallService installService,
                                          IStorageService storageService,
                                          IContentRepository contentRepository,
                                          ReferenceConverter referenceConverter,
                                          ISiteDefinitionRepository siteDefinitionRepository,
                                          IVisitorGroupRepository visitorGroupRepository,
                                          ContentExportProcessor contentExportProcessor,
                                          IScheduledJobExecutor scheduledJobExecutor,
                                          IScheduledJobRepository scheduledJobRepository) :
     base(installService, storageService, contentRepository, referenceConverter, siteDefinitionRepository, scheduledJobExecutor, scheduledJobRepository, visitorGroupRepository)
 {
     _contentExportProcessor = contentExportProcessor;
 }
예제 #7
0
 public ElasticAdminCommerceController(
     IContentIndexService contentIndexService,
     ILanguageBranchRepository languageBranchRepository,
     ICoreIndexer coreIndexer,
     IElasticSearchSettings settings,
     IHttpClientHelper httpClientHelper,
     IServerInfoService serverInfoService,
     IScheduledJobRepository scheduledJobRepository,
     IScheduledJobExecutor scheduledJobExecutor,
     ReferenceConverter referenceConverter)
     : base(contentIndexService, languageBranchRepository, coreIndexer, settings, httpClientHelper, serverInfoService, scheduledJobRepository, scheduledJobExecutor)
 {
     _settings           = settings;
     _referenceConverter = referenceConverter;
 }
 public ElasticAdminController(
     ILanguageBranchRepository languageBranchRepository,
     ICoreIndexer coreIndexer,
     IElasticSearchSettings settings,
     IHttpClientHelper httpClientHelper,
     IScheduledJobRepository scheduledJobRepository,
     IScheduledJobExecutor scheduledJobExecutor)
     : base(settings, httpClientHelper, languageBranchRepository)
 {
     _coreIndexer            = coreIndexer;
     _settings               = settings;
     _healthHelper           = new Health(settings, httpClientHelper);
     _httpClientHelper       = httpClientHelper;
     _scheduledJobRepository = scheduledJobRepository;
     _scheduledJobExecutor   = scheduledJobExecutor;
 }
예제 #9
0
 protected BaseConfigurationController(IInstallService installService,
                                       IStorageService storageService,
                                       IContentRepository contentRepository,
                                       ReferenceConverter referenceConverter,
                                       ISiteDefinitionRepository siteDefinitionRepository,
                                       IScheduledJobExecutor scheduledJobExecutor,
                                       IScheduledJobRepository scheduledJobRepository)
 {
     InstallService           = installService;
     StorageService           = storageService;
     ContentRepository        = contentRepository;
     ReferenceConverter       = referenceConverter;
     SiteDefinitionRepository = siteDefinitionRepository;
     ScheduledJobExecutor     = scheduledJobExecutor;
     ScheduledJobRepository   = scheduledJobRepository;
 }
예제 #10
0
 public JobOverviewRestStore(JobRepository repository, IScheduledJobExecutor executor)
 {
     _repository = repository;
     _executor   = executor;
 }
예제 #11
0
 public QuartzJob(IScheduledJobExecutor executor, ILogger <QuartzJob> logger)
 {
     this.executor = executor;
     this.logger   = logger;
 }