示例#1
0
        public IMAPClientTaskHandler(
            IRepository <UserPartRecord> userRepository,
            IWorkflowManager workflowManager,
            IIMAPHostRecordService imapHostRecordService,
            IOrchardServices orchardServices,
            ITransactionManager transactionManager,
            IIMapProviderFactory imapProviderFactory,
            IScheduledTaskManager taskManager)
        {
            this.userRepository        = userRepository;
            this.transactionManager    = transactionManager;
            this.workflowManager       = workflowManager;
            this.imapHostRecordService = imapHostRecordService;
            this.orchardServices       = orchardServices;
            this.imapProviderFactory   = imapProviderFactory;
            _taskManager = taskManager;
            Logger       = NullLogger.Instance;
            this.T       = NullLocalizer.Instance;

            try
            {
                DateTime firstDate = DateTime.UtcNow.AddMinutes(PeriodInMinutes);
                ScheduleNextTask(firstDate);
            }
            catch (Exception e)
            {
                this.Logger.Error(e, e.Message);
            }
        }
示例#2
0
 public IMAPSettingPartDriver(IIMAPHostRecordService imapHostRecordService)
 {
     this.imapHostRecordService = imapHostRecordService;
     T = NullLocalizer.Instance;
 }