public NotificationSender(
     IDistributedEventBus distributedEventBus,
     IOptions <AbpNotificationOptions> options)
 {
     Options             = options.Value;
     DistributedEventBus = distributedEventBus;
     Logger = NullLogger <NotificationSender> .Instance;
 }
 public NotificationSender(
     IDistributedEventBus distributedEventBus,
     ISnowflakeIdrGenerator snowflakeIdrGenerator,
     IOptions <AbpNotificationOptions> options)
 {
     Options              = options.Value;
     DistributedEventBus  = distributedEventBus;
     SnowflakeIdGenerator = snowflakeIdrGenerator;
     Logger = NullLogger <NotificationSender> .Instance;
 }
        public NotificationPublishProviderManager(
            IServiceProvider serviceProvider,
            IOptions <AbpNotificationOptions> options)
        {
            Options = options.Value;

            _lazyProviders = new Lazy <List <INotificationPublishProvider> >(
                () => Options
                .PublishProviders
                .Select(type => serviceProvider.GetRequiredService(type) as INotificationPublishProvider)
                .ToList(),
                true
                );
        }
        public NotificationDefinitionManager(
            IOptions <AbpNotificationOptions> options,
            IServiceScopeFactory serviceScopeFactory)
        {
            _serviceScopeFactory = serviceScopeFactory;
            Options = options.Value;

            _lazyNotificationDefinitions = new Lazy <Dictionary <string, NotificationDefinition> >(
                CreateNotificationDefinitions,
                isThreadSafe: true
                );

            _lazyNotificationGroupDefinitions = new Lazy <Dictionary <string, NotificationGroupDefinition> >(
                CreateNotificationGroupDefinitions,
                isThreadSafe: true
                );
        }