public TaskDelegate(
     ITaskQueueStorage taskQueueStorage,
     IRepository <InsideModel.Models.Task> taskRepository,
     IServerTime serverTime,
     INotificationEmailSender _notificationEmailSender,
     IPhoneNotificationTaskPerformer phoneNotificationTaskPerformer,
     IAddAnalyticProductDataForClient addAnalyticProductDataForClient,
     ICreateAnalyticDataTasksForClients createAnalyticDataTasksForClients,
     ICustomEventsImporter customEventsImporter,
     ISeoDataImporter seoDataImporter,
     IUserNotificationEmailSender userEmailSender,
     IImportCustomEventsTaskCreator importCustomEventsTaskCreator,
     IRemoveExpiredTokens removeExpiredTokens,
     ICreateUpdatePhonecallsTasksForClients updatePhonecallsTaskCreator,
     IUpdatePhonecalls updatePhonecalls,
     ISmsNotificationTaskPerformer smsNotificationTaskCreator,
     IUserSmsNotificationTaskPerformer userSmsNotificationTaskPerformer)
 {
     this.taskQueueStorage                  = taskQueueStorage;
     this.taskRepository                    = taskRepository;
     this.serverTime                        = serverTime;
     this._notificationEmailSender          = _notificationEmailSender;
     this.phoneNotificationTaskPerformer    = phoneNotificationTaskPerformer;
     this.addAnalyticProductDataForClient   = addAnalyticProductDataForClient;
     this.createAnalyticDataTasksForClients = createAnalyticDataTasksForClients;
     this.customEventsImporter              = customEventsImporter;
     this.seoDataImporter                   = seoDataImporter;
     this.userEmailSender                   = userEmailSender;
     this.importCustomEventsTaskCreator     = importCustomEventsTaskCreator;
     this.removeExpiredTokens               = removeExpiredTokens;
     this.updatePhonecallsTaskCreator       = updatePhonecallsTaskCreator;
     this.updatePhonecalls                  = updatePhonecalls;
     this.smsNotificationTaskCreator        = smsNotificationTaskCreator;
     this.userSmsNotificationTaskPerformer  = userSmsNotificationTaskPerformer;
 }
示例#2
0
 public NotificationPollingAgent(INotificationRepository notificationRepository, ICalendar calendar, INotificationEmailSender notificationEmailSender, ILogManager logManager, ISettings settings, ITwilioMessagingService twilioMessagingService, INotificationMediumRepository notificationMediumRepository)
 {
     _notificationRepository = notificationRepository;
     _calendar = calendar;
     _notificationEmailSender = notificationEmailSender;
     _settings = settings;
     _twilioMessagingService       = twilioMessagingService;
     _notificationMediumRepository = notificationMediumRepository;
     _logger = logManager.GetLogger <NotificationPollingAgent>();
 }
        public NotificationEmailEventConsumer(INotificationEmailSender emailSender, IUserResolver userResolver, ISemanticLog log)
        {
            Guard.NotNull(emailSender);
            Guard.NotNull(userResolver);
            Guard.NotNull(log);

            this.emailSender  = emailSender;
            this.userResolver = userResolver;

            this.log = log;
        }
示例#4
0
 public CourseService(DataContext context, INotificationEmailSender notificationEmailSender, IOptions <AppSettings> settings)
 {
     this.context = context;
     this.notificationEmailSender = notificationEmailSender;
     this.settings = settings;
 }