/// <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;
 }
Example #2
0
 /// <summary>
 /// Application service
 /// </summary>
 public ApplicationService()
 {
     ApplicationContext.Current.Started += (o, e) =>
     {
         this.m_logService   = ApplicationContext.Current.GetService <ISynchronizationLogService>();
         this.m_queueService = ApplicationContext.Current.GetService <IQueueManagerService>();
     };
 }