/// <summary> /// Synchronized dispatch service /// </summary> public SynchronizedAuditDispatchService(IConfigurationManager configurationManager, IJobStateManagerService jobStateManager, IJobManagerService scheduleManager, IThreadPoolService threadPool, IQueueManagerService queueManagerService) { this.m_securityConfiguration = configurationManager.GetSection <SecurityConfigurationSection>(); this.m_jobStateManager = jobStateManager; this.m_queueManagerService = queueManagerService; if (!scheduleManager.GetJobSchedules(this).Any()) { scheduleManager.SetJobSchedule(this, new TimeSpan(0, 5, 0)); } threadPool.QueueUserWorkItem(_ => { try { AuditData securityAlertData = new AuditData(DateTime.Now, ActionType.Execute, OutcomeIndicator.Success, EventIdentifierType.SecurityAlert, AuditUtil.CreateAuditActionCode(EventTypeCodes.AuditLoggingStarted)); AuditUtil.AddLocalDeviceActor(securityAlertData); AuditUtil.SendAudit(securityAlertData); } catch (Exception ex) { this.m_tracer.TraceError("Error starting up audit repository service: {0}", ex); } }); }
/// <summary> /// Create a new job manager service /// </summary> public DefaultJobManagerService(IThreadPoolService threadPool, IServiceManager serviceManager, IJobStateManagerService jobStateManager = null, IJobScheduleManager cronTabManager = null) { this.m_threadPool = threadPool; this.m_jobScheduleManager = cronTabManager ?? new XmlFileJobScheduleManager(); this.m_jobStateManager = jobStateManager ?? new XmlFileJobStateManager(); this.m_serviceManager = serviceManager; }
/// <summary> /// Creates a new job /// </summary> public MailSynchronizationJob(IConfigurationManager configurationManager, IMailMessageRepositoryService mailRepositoryService, IJobStateManagerService jobStateManagerService, ISynchronizationLogService synchronizationLogService) { this.m_configuration = configurationManager.GetSection <SynchronizationConfigurationSection>(); this.m_securityConfiguration = configurationManager.GetSection <SecurityConfigurationSection>(); this.m_mailRepository = mailRepositoryService; this.m_jobStateManager = jobStateManagerService; this.m_synchronizationLogService = synchronizationLogService; }
/// <summary> /// Create a match job /// </summary> public MdmMatchJob(IRecordMergingService <T> recordMergingService, IJobManagerService jobManager, IJobStateManagerService stateManagerService) { this.m_id = new Guid(MD5.Create().ComputeHash(Encoding.ASCII.GetBytes(typeof(T).Name))); this.m_mergeService = recordMergingService; this.m_stateManager = stateManagerService; // Progress change handler if (this.m_mergeService is IReportProgressChanged rpt) { rpt.ProgressChanged += (o, p) => { this.m_stateManager.SetProgress(this, p.State.ToString(), p.Progress); }; } }
/// <summary> /// DI constructor /// </summary> public SystemPolicySynchronizationJob(INetworkInformationService networkInformationService, ITickleService tickleService, IAdministrationIntegrationService amiIntegrationService, IOfflinePolicyInformationService offlinePip, IOfflineRoleProviderService offlineRps, ISecurityRepositoryService securityRepository, IJobStateManagerService jobStateManager, IDataPersistenceService <SecurityChallenge> securityChallengeService = null) { this.m_networkInformationService = networkInformationService; this.m_offlinePip = offlinePip; this.m_offlineRps = offlineRps; this.m_securityRepository = securityRepository; this.m_jobStateManager = jobStateManager; this.m_securityChallenge = securityChallengeService; this.m_amiIntegrationService = amiIntegrationService; this.m_tickleService = tickleService; }
/// <summary> /// DI constructor /// </summary> public SQLiteAuditPruneJob(IJobStateManagerService jobStateManager, ITickleService tickleService) { this.m_jobStateManager = jobStateManager; this.m_tickleService = tickleService; }
/// <summary> /// DI constructor for job /// </summary> public RemoteSynchronizationJob(ISynchronizationService synchronizationService, IJobStateManagerService stateManager) { this.m_synchronizationService = synchronizationService; this.m_stateManager = stateManager; }
/// <summary> /// DI constructor /// </summary> public DataQualityExtensionCleanJob(IJobStateManagerService stateManagerService) { this.m_stateManagerService = stateManagerService; }
/// <summary> /// Data retention job DI constructor /// </summary> public DataRetentionJob(IJobStateManagerService stateManager) { this.m_stateManager = stateManager; }
/// <summary> /// DI constructor /// </summary> public AdoRebuildFreetextIndexJob(IConfigurationManager configurationManager, IJobStateManagerService stateManagerService) { this.m_configuration = configurationManager.GetSection <AdoPersistenceConfigurationSection>(); this.m_stateManager = stateManagerService; }
/// <summary> /// DI constructor for state manager /// </summary> public BiMaterializeJob(IJobStateManagerService stateManager) { this.m_stateManager = stateManager; }
/// <summary> /// DI constructor /// </summary> public JobResourceHandler(ILocalizationService localizationService, IJobManagerService jobManagerService, IJobStateManagerService jobStateManagerService) { this.m_jobManager = jobManagerService; this.m_jobStateService = jobStateManagerService; this.m_localizationService = localizationService; }
/// <summary> /// Creates a new local job manager /// </summary> public LocalJobManagerService(IThreadPoolService threadPool, IServiceManager serviceManager, IJobStateManagerService jobStateManager = null, IJobScheduleManager cronTabManager = null) : base(threadPool, serviceManager, jobStateManager, cronTabManager) { }
/// <summary> /// Job is starting /// </summary> public DefaultBackupJob(IJobStateManagerService jobStateManagerService) { this.m_jobStateManager = jobStateManagerService; }
/// <summary> /// DI ctor /// </summary> public SQLiteSearchIndexRefreshJob(SQLiteSearchIndexService searchIndexService, IJobStateManagerService jobStateManager) { this.m_searchIndexService = searchIndexService; this.m_jobStateManager = jobStateManager; }
/// <summary> /// DI constructor /// </summary> public InactiveUserPruneJob(IJobStateManagerService stateManagerService) { this.m_stateManager = stateManagerService; }