Example #1
0
        protected override void OnStart(string[] args)
        {
            Initializers();

            IEnumerable <CronJobType> jobTypes = new List <CronJobType>()
            {
                CronJobType.WebAnalyticsVisitProcessor,
                CronJobType.WebAnalyticsInstantAlertProcessor,
                CronJobType.WebAnalyticsDailyEmailProcessor
            };

            foreach (var jobType in jobTypes)
            {
                var job = new SmartTouchServiceBase()
                {
                    JobType = jobType,
                };
                if (jobType == CronJobType.WebAnalyticsVisitProcessor)
                {
                    job.Processor = new WebAnalyticsProcessor(job.CurrentCronJob, _JobService, job.CacheName);
                }
                else if (jobType == CronJobType.WebAnalyticsInstantAlertProcessor)
                {
                    job.Processor = new WebVisitEmailNotifier(job.CurrentCronJob, _JobService, job.CacheName);
                }
                else if (jobType == CronJobType.WebAnalyticsDailyEmailProcessor)
                {
                    job.Processor = new WebVisitDailySummaryProcessor(job.CurrentCronJob, _JobService, job.CacheName);
                }
                job.Start(args);
            }
        }
Example #2
0
        protected override void OnStart(string[] args)
        {
            //Initialize IoC, Automapper, Logs
            SmartTouchServiceBase.Initializers();
            var instances = Convert.ToInt16((ConfigurationManager.AppSettings["MAIL_QUEUE_JOB_INSTANCES"] == null || ConfigurationManager.AppSettings["MAIL_QUEUE_JOB_INSTANCES"].Length == 0) ? "4": ConfigurationManager.AppSettings["MAIL_QUEUE_JOB_INSTANCES"]);

            for (var i = 1; i < (instances + 1); i++)
            {
                var mailJob = new SmartTouchServiceBase()
                {
                    JobType  = CronJobType.LandmarkITMailProcessor,
                    Instance = i
                };
                mailJob.Processor = new MailProcessor(mailJob.CurrentCronJob, _JobService, mailJob.CacheName);
                mailJob.Start(args);
            }

            var textJob = new SmartTouchServiceBase()
            {
                JobType = CronJobType.LandmarkITTextProcessor
            };

            textJob.Processor = new TextProcessor(textJob.CurrentCronJob, _JobService, textJob.CacheName);
            textJob.Start(args);
        }
Example #3
0
        protected override void OnStart(string[] args)
        {
            SmartTouchServiceBase.Initializers();
            IEnumerable <CronJobType> jobTypes = new List <CronJobType>()
            {
                CronJobType.BulkOperationProcessor,
                CronJobType.BulkOperationReadyProcessor
            };

            foreach (var jobType in jobTypes)
            {
                var job = new SmartTouchServiceBase()
                {
                    JobType = jobType
                };
                job.Start(args);
            }
        }
Example #4
0
        protected override void OnStart(string[] args)
        {
            Initializers();

            IEnumerable <CronJobType> jobTypes = new List <CronJobType>()
            {
                CronJobType.ImportLeadProcessor,
                CronJobType.NeverBounceFileProcessor,
                CronJobType.NeverBouncePollingProcessor,
                CronJobType.NeverBounceResultsProcessor
            };

            foreach (var jobType in jobTypes)
            {
                var job = new SmartTouchServiceBase()
                {
                    JobType = jobType
                };
                job.Start(args);
            }
        }
Example #5
0
        protected override void OnStart(string[] args)
        {
            Initializers();

            IEnumerable <CronJobType> jobTypes = new List <CronJobType>()
            {
                CronJobType.CampaignProcessor,
                CronJobType.LitmusTestProcessor,
                CronJobType.MailTesterProcessor,
                CronJobType.AutomationCampaignProcessor,
                CronJobType.VMTAFTPLogProcessor,
                CronJobType.VMTALogReadProcessor
            };

            foreach (var jobType in jobTypes)
            {
                var job = new SmartTouchServiceBase()
                {
                    JobType = jobType
                };
                job.Start(args);
            }
        }
Example #6
0
 protected override void OnStart(string[] args)
 {
     SmartTouchServiceBase.Initializers();
     JobType = CronJobType.LeadProcessor;
     base.OnStart(args);
 }