Beispiel #1
0
 public FormSubmissionProcessor(CronJobDb cronJob, JobService jobService, string formSubmissionProcessorCacheName)
     : base(cronJob, jobService, formSubmissionProcessorCacheName)
 {
     this.formService     = IoC.Container.GetInstance <IFormService>();
     this.findSpamService = IoC.Container.GetInstance <IFindSpamService>();
     this.formRepository  = IoC.Container.GetInstance <IFormRepository>();
 }
 public NeverBounceFileProcessor(CronJobDb cronJob, JobService jobService, string neverBounceFileProcessorCacheName)
     : base(cronJob, jobService, neverBounceFileProcessorCacheName)
 {
     accountService = IoC.Container.GetInstance <IAccountService>();
     unitofWork     = IoC.Container.GetInstance <IUnitOfWork>();
     importService  = IoC.Container.GetInstance <IImportDataService>();
 }
Beispiel #3
0
 public CampaignProcessor(CronJobDb cronJob, JobService jobService, string campaignProcessorCacheName)
     : base(cronJob, jobService, campaignProcessorCacheName)
 {
     this.campaignService           = IoC.Container.GetInstance <ICampaignService>();
     this.communicationService      = IoC.Container.GetInstance <ICommunicationService>();
     this.accountService            = IoC.Container.GetInstance <IAccountService>();
     this.accountRepository         = IoC.Container.GetInstance <IAccountRepository>();
     this.serviceProviderRepository = IoC.Container.GetInstance <IServiceProviderRepository>();
     this.userRepository            = IoC.Container.GetInstance <IUserRepository>();
 }
 public LeadScoreProcessor(CronJobDb cronJob, JobService jobService, string leadScoreProcessorCacheName)
     : base(cronJob, jobService, leadScoreProcessorCacheName)
 {
     this.indexingService      = IoC.Container.GetInstance <IIndexingService>();
     this.contactService       = IoC.Container.GetInstance <IContactService>();
     this.searchService        = IoC.Container.GetInstance <ISearchService <Contact> >();
     this.leadScoreRuleService = IoC.Container.GetInstance <ILeadScoreRuleService>();
     this.leadScoreService     = IoC.Container.GetInstance <ILeadScoreService>();
     this.accountService       = IoC.Container.GetInstance <IAccountService>();
     this.messageService       = IoC.Container.GetInstance <IMessageService>();
 }
Beispiel #5
0
 public LeadProcessor(CronJobDb cronJob, JobService jobService, string leadProcessorCacheName)
     : base(cronJob, jobService, leadProcessorCacheName)
 {
     leadAdaptersRepository‏   = IoC.Container.GetInstance <ILeadAdaptersRepository‏>();
     contactRepository         = IoC.Container.GetInstance <IContactRepository>();
     serviceProviderRepository = IoC.Container.GetInstance <IServiceProviderRepository>();
     importDataRepository      = IoC.Container.GetInstance <IImportDataRepository>();
     searchService             = IoC.Container.GetInstance <ISearchService <Contact> >();
     tagService           = IoC.Container.GetInstance <ITagService>();
     customFieldService   = IoC.Container.GetInstance <ICustomFieldService>();
     cahceService         = IoC.Container.GetInstance <ICachingService>();
     communicationService = IoC.Container.GetInstance <ICommunicationService>();
     unitOfWork           = IoC.Container.GetInstance <IUnitOfWork>();
     mailGunService       = IoC.Container.GetInstance <IMailGunService>();
     contactService       = IoC.Container.GetInstance <IContactService>();
     accountRepository    = IoC.Container.GetInstance <IAccountRepository>();
 }
Beispiel #6
0
 public ImportLeadProcessor(CronJobDb cronJob, JobService jobService, string importProcessorCacheName)
     : base(cronJob, jobService, importProcessorCacheName)
 {
     leadAdaptersRepository‏   = IoC.Container.GetInstance <ILeadAdaptersRepository‏>();
     serviceProviderRepository = IoC.Container.GetInstance <IServiceProviderRepository>();
     importDataRepository      = IoC.Container.GetInstance <IImportDataRepository>();
     searchService             = IoC.Container.GetInstance <ISearchService <Contact> >();
     customFieldService        = IoC.Container.GetInstance <ICustomFieldService>();
     suppressionListService    = IoC.Container.GetInstance <ISuppressionListService>();
     suppressionListRepository = IoC.Container.GetInstance <ISuppressionListRepository>();
     cahceService          = IoC.Container.GetInstance <ICachingService>();
     communicationService  = IoC.Container.GetInstance <ICommunicationService>();
     mailGunService        = IoC.Container.GetInstance <IMailGunService>();
     contactService        = IoC.Container.GetInstance <IContactService>();
     unitofWork            = IoC.Container.GetInstance <IUnitOfWork>();
     dropdownValuesService = IoC.Container.GetInstance <IDropdownValuesService>();
 }
Beispiel #7
0
        private CronJobProcessor GetJobProcessor(CronJobDb cronJob)
        {
            /*
             * We need to create instance for all job processors based on their type
             **/
            CronJobProcessor processor = null;

            switch ((CronJobType)cronJob.CronJobID)
            {
            case CronJobType.LeadProcessor:
                processor = new LeadProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.ImportLeadProcessor:
                processor = new ImportLeadProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.IndexProcessor:
                processor = new IndexProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.LeadScoreProcessor:
                processor = new LeadScoreProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.FormSubmissionProcessor:
                processor = new FormSubmissionProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.CampaignProcessor:
                processor = new CampaignProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.BulkOperationProcessor:
                processor = new BulkOperationProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.ActionProcessor:
                processor = new ActionProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.APILeadSubmissionProcessor:
                processor = new APILeadSubmissionProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.SmartSearchProcessor:
                processor = new SmartSearchProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.LitmusTestProcessor:
                processor = new LitmusTestProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.MailTesterProcessor:
                processor = new CampaignMailTesterProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.NeverBounceFileProcessor:
                processor = new NeverBounceFileProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.NeverBouncePollingProcessor:
                processor = new NeverBouncePollingProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.NeverBounceResultsProcessor:
                processor = new NeverBounceResultsProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.AutomationCampaignProcessor:
                processor = new AutomationCampaignProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.VMTAFTPLogProcessor:
                processor = new VMTALog.FTPProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.VMTALogReadProcessor:
                processor = new VMTALog.FileReadProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.NotificationProcessor:
                processor = new NotificationProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.BulkOperationReadyProcessor:
                processor = new BulkOperationReadyProcessor(cronJob, _JobService, CacheName);
                break;

            case CronJobType.LandmarkITMailProcessor:
            case CronJobType.LandmarkITTextProcessor:
            case CronJobType.WebAnalyticsVisitProcessor:
            case CronJobType.WebAnalyticsDailyEmailProcessor:
            case CronJobType.WebAnalyticsInstantAlertProcessor:
            default:
                processor = Processor;
                break;
            }
            return(processor);
        }
Beispiel #8
0
 public LitmusTestProcessor(CronJobDb cronJob, JobService jobService, string litmusTestCacheName)
     : base(cronJob, jobService, litmusTestCacheName)
 {
     campaignService = IoC.Container.GetInstance <ICampaignService>();
     accountService  = IoC.Container.GetInstance <IAccountService>();
 }
Beispiel #9
0
 public NeverBouncePollingProcessor(CronJobDb cronJob, JobService jobService, string neverBouncePollingCacheName)
     : base(cronJob, jobService, neverBouncePollingCacheName)
 {
     accountService = IoC.Container.GetInstance <IAccountService>();
 }