public NotificationBackgroundService(
     ILogger logger,
     ISession session,
     ModuleConfiguration configuration,
     INotificationHelper helper)
     : base(logger, configuration.Notifications.PollingInterval * 1000, configuration.Notifications.DatabaseEnabled)
 {
     this.session       = session;
     this.helper        = helper;
     this.configuration = configuration.Notifications;
 }
Exemple #2
0
 public MqNotificationService(
     RabbitMqConfiguration mqConfig,
     IMqService mqService,
     ModuleConfiguration configuration,
     ILogger logger,
     INotificationHelper helper)
 {
     this.notificationConfig = configuration.Notifications;
     this.mqConfig           = mqConfig;
     this.mqService          = mqService;
     this.logger             = logger;
     this.helper             = helper;
 }