public EmailServiceTaskHandeler(IScheduledTaskManager taskManager, IMailChimpSettingsService settingsService, IRepository <Outbox> mailOutBox, IRepository <OrderRecord> orders) { _settingsService = settingsService; _mailOutBox = mailOutBox; _taskManager = taskManager; _orders = orders; //foreach (var item in _taskManager.GetTasks(TASK_TYPE)) //{ // _taskManager.DeleteTasks(item.ContentItem); //} Logger = NullLogger.Instance; try { var firstDate = DateTime.UtcNow.AddMinutes(3); //firstDate = TimeZoneInfo.ConvertTimeToUtc(firstDate, TimeZoneInfo.Local); ScheduleNextTask(firstDate); } catch (Exception e) { this.Logger.Error(e, e.Message); } }
public DashboardController(IRepository <CampaignCategoriesRecord> campaignCategoryRepository, IRepository <LinkCampaignAndCategoriesRecord> linkCampaignAndCategoryRepository, ICampaignService campaignService, IMailChimpSettingsService settingsService, IOrderService orderService, IWorkContextAccessor wca, IStoreService storeService, IimageHelper imageHelper, IMembershipService membershipService, IPayoutService payoutService, IOrchardServices services, IContentManager contentManager, IPromotionService promotionService, IPaymentInformationService paymentInfService, ICampaignCategoriesService campaignCategoryService, IRepository <CurrencyRecord> currencyRepository, IMessageService messageService, ITShirtCostService tshirtService, IProductService productService, INotifier notifier, ICookieCultureService cookieCultureService, ITeeyootMessagingService teeyootMessagingService, IWorkContextAccessor workContextAccessor, ITShirtCostService costService, IPriceConversionService priceConversionService, IRepository <TeeyootUserPart> users ) { _campaignCategoryRepository = campaignCategoryRepository; _linkCampaignAndCategoryRepository = linkCampaignAndCategoryRepository; _cookieCultureService = cookieCultureService; _campaignService = campaignService; _currencyRepository = currencyRepository; _orderService = orderService; _wca = wca; this._settingsService = settingsService; this._orderService = orderService; _storeService = storeService; _imageHelper = imageHelper; _membershipService = membershipService; _contentManager = contentManager; _payoutService = payoutService; _promotionService = promotionService; _campaignCategoryService = campaignCategoryService; _paymentInfService = paymentInfService; _messageService = messageService; _tshirtService = tshirtService; _productService = productService; _notifier = notifier; _teeyootMessagingService = teeyootMessagingService; Services = services; _costService = costService; Logger = NullLogger.Instance; _priceConversionService = priceConversionService; _users = users; _workContextAccessor = workContextAccessor; culture = _workContextAccessor.GetContext().CurrentCulture.Trim(); cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY"); }
public TeeyootMessagingService(IRepository<MailTemplateSubjectRecord> subjectRepository, IRepository<MailChimpSettingsPartRecord> mailChimpSettingsRepository, IContentManager contentManager, IRepository<CampaignRecord> campaignRepository, IMailChimpSettingsService settingsService, IMessageService messageService, INotifier notifier, IRepository<OrderRecord> orderRepository, IRepository<LinkOrderCampaignProductRecord> ocpRepository, IRepository<UserRolesPartRecord> userRolesPartRepository, IRepository<PayoutRecord> payoutsRepository, IRepository<PaymentInformationRecord> payoutInformRepository, IWorkContextAccessor wca, IRepository<CampaignProductRecord> campaignProductRepository, IRepository<CurrencyRecord> currencyRepository, IRepository<BringBackCampaignRecord> backCampaignRepository) { _mailSubjectService = new MailSubjectService(subjectRepository); _mailChimpSettingsRepository = mailChimpSettingsRepository; _contentManager = contentManager; _messageService = messageService; _settingsService = settingsService; _notifier = notifier; _orderRepository = orderRepository; _ocpRepository = ocpRepository; _currencyRepository = currencyRepository; _campaignRepository = campaignRepository; _userRolesPartRepository = userRolesPartRepository; _payoutsRepository = payoutsRepository; _payoutInformRepository = payoutInformRepository; _wca = wca; _campaignProductRepository = campaignProductRepository; _backCampaignRepository = backCampaignRepository; }
public MailChimpSettingsPartDriver(IMailChimpSettingsService settingsService, IContentManager contentManager, ILanguageService languageService) { _contentManager = contentManager; _settingsService = settingsService; _languageService = languageService; T = NullLocalizer.Instance; }
public TeeyootUserService( IRepository <MailTemplateSubjectRecord> subjectRepository, IMailChimpSettingsService settingsService, IWorkContextAccessor wca) { _mailSubjectService = new MailSubjectService(subjectRepository); _settingsService = settingsService; _wca = wca; }
public DashboardController(IRepository<CampaignCategoriesRecord> campaignCategoryRepository, IRepository<LinkCampaignAndCategoriesRecord> linkCampaignAndCategoryRepository, ICampaignService campaignService, IMailChimpSettingsService settingsService, IOrderService orderService, IWorkContextAccessor wca, IStoreService storeService, IimageHelper imageHelper, IMembershipService membershipService, IPayoutService payoutService, IOrchardServices services, IContentManager contentManager, IPromotionService promotionService, IPaymentInformationService paymentInfService, ICampaignCategoriesService campaignCategoryService, IRepository<CurrencyRecord> currencyRepository, IMessageService messageService, ITShirtCostService tshirtService, IProductService productService, INotifier notifier, ICookieCultureService cookieCultureService, ITeeyootMessagingService teeyootMessagingService, IWorkContextAccessor workContextAccessor ) { _campaignCategoryRepository = campaignCategoryRepository; _linkCampaignAndCategoryRepository = linkCampaignAndCategoryRepository; _cookieCultureService = cookieCultureService; _campaignService = campaignService; _currencyRepository = currencyRepository; _orderService = orderService; _wca = wca; this._settingsService = settingsService; this._orderService = orderService; _storeService = storeService; _imageHelper = imageHelper; _membershipService = membershipService; _contentManager = contentManager; _payoutService = payoutService; _promotionService = promotionService; _campaignCategoryService = campaignCategoryService; _paymentInfService = paymentInfService; _messageService = messageService; _tshirtService = tshirtService; _productService = productService; _notifier = notifier; _teeyootMessagingService = teeyootMessagingService; Services = services; Logger = NullLogger.Instance; _workContextAccessor = workContextAccessor; culture = _workContextAccessor.GetContext().CurrentCulture.Trim(); cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY"); }
public MandrillService(IRepository <MailChimpSettingsPartRecord> mailChimpSettingsRepository, IContentManager contentManager, ICampaignService campaignService, IMailChimpSettingsService settingsService, IMessageService messageService, INotifier notifier, IOrderService orderService) { _mailChimpSettingsRepository = mailChimpSettingsRepository; _contentManager = contentManager; _messageService = messageService; _campaignService = campaignService; _settingsService = settingsService; _notifier = notifier; _orderService = orderService; }
public MandrillService(IRepository<MailChimpSettingsPartRecord> mailChimpSettingsRepository, IContentManager contentManager,ICampaignService campaignService, IMailChimpSettingsService settingsService, IMessageService messageService, INotifier notifier, IOrderService orderService) { _mailChimpSettingsRepository = mailChimpSettingsRepository; _contentManager = contentManager; _messageService = messageService; _campaignService = campaignService; _settingsService = settingsService; _notifier = notifier; _orderService = orderService; }
public AdminMessageController( IMailChimpSettingsService settingsService, IOrchardServices services, IRepository <MailTemplateSubjectRecord> mailTemplateSubjectRecordRepository, IWorkContextAccessor workContextAccessor, ICountryService countryService, IRepository <CultureRecord> cultureRepository) { _settingsService = settingsService; Services = services; _mailTemplateSubjectRecordRepository = mailTemplateSubjectRecordRepository; _workContextAccessor = workContextAccessor; _countryService = countryService; _cultureRepository = cultureRepository; }
public AdminMessageContentController(IMessageService messageService, ISiteService siteService, IShapeFactory shapeFactory, INotifier notifier, ICampaignService campaignService, IMailChimpSettingsService settingsService, IOrderService orderService, IWorkContextAccessor wca, ITeeyootMessagingService teeyootMessagingService ) { _messageService = messageService; _siteService = siteService; _notifier = notifier; _campaignService = campaignService; _settingsService = settingsService; _orderService = orderService; _wca = wca; _teeyootMessagingService = teeyootMessagingService; Shape = shapeFactory; }