/// <summary>
        /// Initializes a new instance of the <see cref="NotificationEventHandler"/> class.
        /// </summary>
        public NotificationEventHandler(
            IBackgroundJobManager backgroundJobManager,
            IOptions <AbpNotificationOptions> options,
            INotificationStore notificationStore,
            INotificationPublishProviderManager notificationPublishProviderManager)
        {
            BackgroundJobManager = backgroundJobManager;
            Options           = options.Value;
            NotificationStore = notificationStore;
            NotificationPublishProviderManager = notificationPublishProviderManager;

            Logger = NullLogger <NotificationEventHandler> .Instance;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="DefaultNotificationDispatcher"/> class.
        /// </summary>
        public DefaultNotificationDispatcher(
            IBackgroundJobManager backgroundJobManager,
            IOptions <AbpNotificationOptions> options,
            INotificationStore notificationStore,
            INotificationDefinitionManager notificationDefinitionManager,
            INotificationPublishProviderManager notificationPublishProviderManager)
        {
            _backgroundJobManager               = backgroundJobManager;
            _notificationOptions                = options.Value;
            _notificationStore                  = notificationStore;
            _notificationDefinitionManager      = notificationDefinitionManager;
            _notificationPublishProviderManager = notificationPublishProviderManager;

            DistributedEventBus = NullDistributedEventBus.Instance;
            Logger = NullLogger <DefaultNotificationDispatcher> .Instance;
        }
Esempio n. 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NotificationEventHandler"/> class.
        /// </summary>
        public NotificationEventHandler(
            IJsonSerializer jsonSerializer,
            IBackgroundJobManager backgroundJobManager,
            IOptions <AbpNotificationOptions> options,
            INotificationStore notificationStore,
            INotificationDefinitionManager notificationDefinitionManager,
            INotificationSubscriptionManager notificationSubscriptionManager,
            INotificationPublishProviderManager notificationPublishProviderManager)
        {
            Options                            = options.Value;
            JsonSerializer                     = jsonSerializer;
            BackgroundJobManager               = backgroundJobManager;
            NotificationStore                  = notificationStore;
            NotificationDefinitionManager      = notificationDefinitionManager;
            NotificationSubscriptionManager    = notificationSubscriptionManager;
            NotificationPublishProviderManager = notificationPublishProviderManager;

            Logger = NullLogger <NotificationEventHandler> .Instance;
        }