public ProgressNotificationsBackgroundService(
     IHubContext <NotificationsHub, NotificationsHub.IClient> progressHub,
     ProgressNotificationDictionary progressNotifications,
     IOptions <PushNotificationsOptions> options)
 {
     _progressHub           = progressHub;
     _progressNotifications = progressNotifications;
     _intervalInSeconds     = options.Value.ProgressIntervalInMilliseconds;
 }
示例#2
0
 public NotificationsManager(
     IHubContext <NotificationsHub, NotificationsHub.IClient> hubContext,
     ProgressNotificationDictionary progressNotifications,
     ILogger <NotificationsManager> logger)
 {
     _hubContext            = hubContext;
     _progressNotifications = progressNotifications;
     _logger = logger;
 }