public AdministrationController(IStoreService storeService, IUserService userService, IWebPushService webPushService, IHubContext <SignalRHub, ITypedHubClient> hubContext, IMapper mapper)
 {
     _storeService   = storeService;
     _userService    = userService;
     _webPushService = webPushService;
     _hubContext     = hubContext;
     _mapper         = mapper;
 }
 public PushNotificationsController(IOptions <WebPushNotificationConfig> configuration, ISqlServerStoreRepository storeRepository, IWebPushService pushservice, IWebPushMessagesQueue pushmessagesqueue, ILogger <PushNotificationsController> logger)
 {
     this._logger        = logger;
     this._configuration = configuration.Value;
     this._pushservice   = pushservice;
     //this._pushstore = pushstore;
     this._pushmessagesqueue = pushmessagesqueue;
     this._storeRepository   = storeRepository;
 }
Пример #3
0
 public DeliveryService(
     IServiceProvider services,
     IDeliveryQueries deliveryQueries,
     IOptions <DeliveryTaskSettings> settings,
     IDeliveryItemsQueue queue,
     IWebPushService pushService,
     ILogger <DeliveryService> logger)
 {
     _services        = services ?? throw new ArgumentNullException(nameof(services));
     _deliveryQueries = deliveryQueries ?? throw new ArgumentNullException(nameof(deliveryQueries));
     _settings        = settings?.Value ?? throw new ArgumentNullException(nameof(settings));
     _queue           = queue ?? throw new ArgumentNullException(nameof(queue));
     _pushService     = pushService ?? throw new ArgumentException(nameof(pushService));
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Пример #4
0
 public RegistrationController(IUserStore userStore, ISubscriptionStore subscriptionStore, IWebPushService webPushService)
 {
     this.userStore         = userStore;
     this.subscriptionStore = subscriptionStore;
     this.webPushService    = webPushService;
 }
Пример #5
0
 public UserService(DatabaseContext context, IWebPushService webPushService)
 {
     _databaseContext = context;
     _webPushService  = webPushService;
 }
Пример #6
0
 public WebPushController(IWebPushService webPushService)
 {
     _webPushService = webPushService;
 }
 public WebPushMessagesDequeuer(IWebPushMessagesQueue messagesQueue, IStoreRepositoryAccessorProvider pushStoreAccessorProvider, IWebPushService pushService)
 {
     _pushStoreAccessorProvider = pushStoreAccessorProvider;
     _messagesQueue             = messagesQueue;
     _pushService = pushService;
 }