Beispiel #1
0
 public NotificationPublisher(ICurrentTenant currentTenant, IBackgroundJobManager backgroundJobManager, INotificationDistributer notificationDistributer, IGuidGenerator guidGenerator, IClock clock)
 {
     _currentTenant           = currentTenant;
     _backgroundJobManager    = backgroundJobManager;
     _notificationDistributer = notificationDistributer;
     _guidGenerator           = guidGenerator;
     _clock = clock;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationPublisher"/> class.
 /// </summary>
 public NotificationPublisher(
     INotificationRepository notificationRepository,
     IBackgroundJobManager backgroundJobManager,
     INotificationDistributer notificationDistributer)
 {
     _notificationRepository  = notificationRepository;
     _backgroundJobManager    = backgroundJobManager;
     _notificationDistributer = notificationDistributer;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationDistributionJob"/> class.
 /// </summary>
 public NotificationDistributionJob(
     INotificationConfiguration notificationConfiguration,
     IIocResolver iocResolver,
     INotificationDistributer notificationDistributer)
 {
     _notificationConfiguration = notificationConfiguration;
     _iocResolver             = iocResolver;
     _notificationDistributer = notificationDistributer;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationPublisher"/> class.
 /// </summary>
 public NotificationPublisher(
     INotificationStore store,
     IBackgroundJobManager backgroundJobManager,
     INotificationDistributer notificationDistributer)
 {
     _store = store;
     _backgroundJobManager = backgroundJobManager;
     _notificationDistributer = notificationDistributer;
     AbpSession = NullAbpSession.Instance;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationPublisher"/> class.
 /// </summary>
 public NotificationPublisher(
     INotificationStore store,
     IBackgroundJobManager backgroundJobManager,
     INotificationDistributer notificationDistributer)
 {
     _store = store;
     _backgroundJobManager    = backgroundJobManager;
     _notificationDistributer = notificationDistributer;
     AbpSession = NullAbpSession.Instance;
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationPublisher"/> class.
 /// </summary>
 public NotificationPublisher(
     INotificationStore store,
     IBackgroundJobManager backgroundJobManager,
     INotificationDistributer notificationDistributer,
     IGuidGenerator guidGenerator)
 {
     _store = store;
     _backgroundJobManager    = backgroundJobManager;
     _notificationDistributer = notificationDistributer;
     _guidGenerator           = guidGenerator;
     CodeZeroSession          = NullCodeZeroSession.Instance;
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="NotificationPublisher" /> class.
 /// </summary>
 public NotificationPublisher(
     INotificationStore store,
     IBackgroundJobManager backgroundJobManager,
     INotificationDistributer notificationDistributer,
     IGuidGenerator guidGenerator)
 {
     this.store = store;
     this.backgroundJobManager    = backgroundJobManager;
     this.notificationDistributer = notificationDistributer;
     this.guidGenerator           = guidGenerator;
     StudioXSession = NullStudioXSession.Instance;
 }
Beispiel #8
0
 public NotificationService(
     INotificationDistributer notificationDistributer,
     IUnitOfWorkManager unitOfWorkManager,
     IBackgroundJobManager backgroundJobManager,
     INotificationStore notificationStore,
     IGuidGenerator guidGenerator)
 {
     _notificationDistributer = notificationDistributer;
     _unitOfWorkManager       = unitOfWorkManager;
     _backgroundJobManager    = backgroundJobManager;
     _notificationStore       = notificationStore;
     _guidGenerator           = guidGenerator;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationPublisher"/> class.
 /// </summary>
 public NotificationPublisher(
     INotificationStore store,
     IBackgroundJobManager backgroundJobManager,
     INotificationDistributer notificationDistributer,
     INotificationConfiguration notificationConfiguration,
     IGuidGenerator guidGenerator,
     IIocResolver iocResolver)
 {
     _store = store;
     _backgroundJobManager    = backgroundJobManager;
     _notificationDistributer = notificationDistributer;
     _guidGenerator           = guidGenerator;
     AbpSession = NullAbpSession.Instance;
 }
Beispiel #10
0
 public NotificationPublisher_Tests()
 {
     _backgroundJobManager    = GetRequiredService <IBackgroundJobManager>();
     _currentTenant           = GetRequiredService <ICurrentTenant>();
     _notificationDistributer = GetRequiredService <INotificationDistributer>();
     _guidGenerator           = GetRequiredService <IGuidGenerator>();
     _clock = GetRequiredService <IClock>();
     _notificationPublisher = new NotificationPublisher(
         _currentTenant,
         _backgroundJobManager,
         _notificationDistributer,
         _guidGenerator,
         _clock
         );
 }
Beispiel #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationDistributionJob"/> class.
 /// </summary>
 public NotificationDistributionJob(INotificationDistributer notificationDistributer)
 {
     _notificationDistributer = notificationDistributer;
 }