public PushNotificationsDequeuer(IPushNotificationsQueue messagesQueue, IPushNotificationService notificationService )//IServiceProvider serviceProvider) { _messagesQueue = messagesQueue; _notificationService = notificationService; //_serviceProvider = serviceProvider; }
public PushNotificationsApiController(IPushSubscriptionStore subscriptionStore, IPushNotificationService notificationService, IPushNotificationsQueue pushNotificationsQueue, IMQTTClientService mqttClientService) { _subscriptionStore = subscriptionStore; _notificationService = notificationService; _pushNotificationsQueue = pushNotificationsQueue; _mqttClientService = mqttClientService; }
public PwaController( IServiceWorkerBuilder serviceWorkerBuilder, IGeneratePwaInitScript serviceWorkerInitScriptGenerator, IOptions <PwaOptions> pwaOptionsAccessor, IOptions <PushClientSettings> pushSettingsAccessor, IPushSubscriptionStore subscriptionStore, IPushNotificationService notificationService, IPushNotificationsQueue pushNotificationsQueue, IUserIdResolver userIdResolver, ITenantIdResolver tenantIdResolver, IResourceHelper resourceHelper ) { _serviceWorkerBuilder = serviceWorkerBuilder; _serviceWorkerInitScriptGenerator = serviceWorkerInitScriptGenerator; _options = pwaOptionsAccessor.Value; _pushSettings = pushSettingsAccessor.Value; _subscriptionStore = subscriptionStore; _notificationService = notificationService; _pushNotificationsQueue = pushNotificationsQueue; _userIdResolver = userIdResolver; _tenantIdResolver = tenantIdResolver; _resourceHelper = resourceHelper; }
public PushNotificationsApiController(IPushSubscriptionStore subscriptionStore, IPushNotificationService notificationService, IPushNotificationsQueue pushNotificationsQueue, IOptions <Miscellenous> misc) { _subscriptionStore = subscriptionStore; _notificationService = notificationService; _pushNotificationsQueue = pushNotificationsQueue; _miscellenous = misc.Value; }
public PageCreatedNotifyServiceWorkerCache( IPushNotificationsQueue pushNotificationsQueue, IPageUrlResolver pageUrlResolver, IUserIdResolver userIdResolver ) { _pushNotificationsQueue = pushNotificationsQueue; _pageUrlResolver = pageUrlResolver; _userIdResolver = userIdResolver; }
public PostCreatedNotifyServiceWorkerCache( IPushNotificationsQueue pushNotificationsQueue, IProjectSettingsResolver projectSettingsResolver, IBlogUrlResolver blogUrlResolver, IUserIdResolver userIdResolver ) { _pushNotificationsQueue = pushNotificationsQueue; _projectSettingsResolver = projectSettingsResolver; _blogUrlResolver = blogUrlResolver; _userIdResolver = userIdResolver; }
public FileUploadCacheUpdateHandler( IOptions <PwaContentFilesPreCacheOptions> optionsAccessor, IPushNotificationsQueue pushNotificationsQueue, IUserIdResolver userIdResolver, ITenantIdResolver tenantIdResolver ) { _options = optionsAccessor.Value; _pushNotificationsQueue = pushNotificationsQueue; _userIdResolver = userIdResolver; _tenantIdResolver = tenantIdResolver; }
public PushNotificationsApiController( IPushSubscriptionStore subscriptionStore, IPushNotificationService notificationService, IPushNotificationService pushNotificationService, IPushNotificationsQueue pushNotificationsQueue, IJwtFactory jwtFactory, DataDbContect context, IHttpContextAccessor acceessor) { _subscriptionStore = subscriptionStore; _notificationService = notificationService; _pushNotificationsQueue = pushNotificationsQueue; _pushNotificationService = pushNotificationService; _jwtFactory = jwtFactory; _context = context; _acceessor = acceessor; }
public PushNotificationBackgroundTask( IPushNotificationsQueue messagesQueue, IEnumerable <IPushNotificationRecipientProvider> recipientProviders, IPushNotificationService notificationService, ILogger <PushNotificationBackgroundTask> logger ) { _recipientProviders = recipientProviders; _messagesQueue = messagesQueue; _notificationService = notificationService; _log = logger; }
public PageDeleteNotifyServiceWorkerCache( IPushNotificationsQueue pushNotificationsQueue, IPageQueries pageQueries, IProjectSettingsResolver projectSettingsResolver, IPageUrlResolver pageUrlResolver, IUserIdResolver userIdResolver ) { _pushNotificationsQueue = pushNotificationsQueue; _pageQueries = pageQueries; _projectSettingsResolver = projectSettingsResolver; _pageUrlResolver = pageUrlResolver; _userIdResolver = userIdResolver; }
public PostDeleteNotifyServiceWorkerCache( IPushNotificationsQueue pushNotificationsQueue, IProjectSettingsResolver projectSettingsResolver, IPostQueries postQueries, IBlogUrlResolver blogUrlResolver, IUserIdResolver userIdResolver ) { _pushNotificationsQueue = pushNotificationsQueue; _projectSettingsResolver = projectSettingsResolver; _postQueries = postQueries; _blogUrlResolver = blogUrlResolver; _userIdResolver = userIdResolver; }
internal void NotifySubscribers(IPushNotificationsQueue pushNotificationsQueue, IPushSubscriptionStore subscriptionStore, string districtWiseCasesUrl) { subscriptionStore.ForEachSubscriptionAsync((subscription) => { var currentDistrictCases = GetLatestCountForDistrict(subscription.District, districtWiseCasesUrl); if (currentDistrictCases > subscription.LatestConfirmedCase) { pushNotificationsQueue.Enqueue(new Lib.Net.Http.WebPush.PushMessage($"Cases in your District {subscription.District} has increased the new number is {currentDistrictCases}") { Topic = "Covid 19 Alert", Urgency = Lib.Net.Http.WebPush.PushMessageUrgency.High }); subscription.LatestConfirmedCase = currentDistrictCases; subscriptionStore.UpdateSubscriptionAsync(subscription); } }); }
public PushNotificationsDequeuer(IPushNotificationsQueue messagesQueue, IPushSubscriptionStoreAccessorProvider subscriptionStoreAccessorProvider, IPushNotificationService notificationService) { _subscriptionStoreAccessorProvider = subscriptionStoreAccessorProvider; _messagesQueue = messagesQueue; _notificationService = notificationService; }
public PushNotificationsDequeuer(IPushNotificationsQueue messagesQueue, IServiceScopeFactory scopeFactory) { _messagesQueue = messagesQueue; _scopeFactory = scopeFactory; }
public PushNotificationsApiController(IPushSubscriptionStore subscriptionStore, IPushNotificationService notificationService, IPushNotificationsQueue pushNotificationsQueue) { _subscriptionStore = subscriptionStore; _notificationService = notificationService; _pushNotificationsQueue = pushNotificationsQueue; }
public Logger(IPushNotificationsQueue pr, IHttpContextAccessor httpContextAccessor) { _httpContextAccessor = httpContextAccessor; _pr = pr; }
public NotificationController(IPushNotificationsQueue pushNotificationsQueue) { _pushNotificationsQueue = pushNotificationsQueue; }