Beispiel #1
0
 public ApplicationCreatedEventHandler(
     IEventPublisher eventPublisher,
     IPushNotificationSender pushNotificationSender)
 {
     _eventPublisher         = eventPublisher;
     _pushNotificationSender = pushNotificationSender;
 }
 public PushNotificationsController(
     IAsyncDocumentSession dbSession,
     ILogger <PushNotificationsController> logger,
     IPushNotificationSender pushSender)
     : base(dbSession, logger)
 {
     this.pushSender = pushSender;
 }
 public PushNotificationCoordinator(ILog log, INotificationHistoryRepository notificationHistoryRepository, IUserSubscriptionRepository userSubscriptionRepository, IEnumerable <IGetNewNotifications> notificationMakers, IPushNotificationSender pushNotificationSender) // Ninject will bind all instances
 {
     _log = log;
     _notificationHistoryRepository = notificationHistoryRepository;
     _userSubscriptionRepository    = userSubscriptionRepository;
     _notificationMakers            = notificationMakers;
     _pushNotificationSender        = pushNotificationSender;
 }
 public ApplicationProcessFinishedEventPublisher(
     IEventPublisher eventPublisher,
     IMapper mapper,
     IPushNotificationSender pushNotificationSender)
 {
     _eventPublisher         = eventPublisher;
     _mapper                 = mapper;
     _pushNotificationSender = pushNotificationSender;
 }
Beispiel #5
0
 public IftttController(
     IOptionsMonitor <AppSettings> appOptions,
     IPushNotificationSender pushNotifications,
     IAsyncDocumentSession dbSession,
     ILogger <IftttController> logger)
     : base(dbSession, logger)
 {
     this.appOptions        = appOptions.CurrentValue;
     this.pushNotifications = pushNotifications;
 }
Beispiel #6
0
 public PushNotificationService(
     IMemberService memberService,
     IChannelService channelService,
     IPushNotificationSender pushNotificationSender,
     IPushNotificationSubscriber pushNotificationSubscriber)
 {
     _memberService              = memberService;
     _channelService             = channelService;
     _pushNotificationSender     = pushNotificationSender;
     _pushNotificationSubscriber = pushNotificationSubscriber;
 }
Beispiel #7
0
 public NotificationService(IPushNotificationSender pushNotificationSender,
                            IEmailSender emailSender,
                            IUnitOfWork uow,
                            IMapper mapper, ILogger <NotificationService> logger)
 {
     _pushNotificationSender = pushNotificationSender;
     _emailSender            = emailSender;
     _uow    = uow;
     _mapper = mapper;
     _logger = logger;
 }
        public Application(ILifetimeScope scope,
                           ILogger logger,
                           AdvertsContext advertsContext,
                           AdvertsErrorChecker advertsErrorChecker,
                           AdvertSender advertSender,
                           IPushNotificationSender pushNotificationSender)
        {
            _scope                  = scope;
            _logger                 = logger;
            _advertsContext         = advertsContext;
            _advertsErrorChecker    = advertsErrorChecker;
            _advertSender           = advertSender;
            _pushNotificationSender = pushNotificationSender;

            _timer = new Timer {
                AutoReset = true
            };
            _timer.Elapsed += OnTimedEvent;

            _timerPushSender = new Timer {
                AutoReset = true
            };
            _timerPushSender.Elapsed += OnPushSenderTimedEvent;
        }
 public AdvertSender(IPushNotificationSender pushNotificationSender, ILogger logger, AdvertsContext context)
 {
     _pushNotificationSender = pushNotificationSender;
     _logger  = logger;
     _context = context;
 }