public AbpNotificationsTestDataBuilder( INotificationStore notificationStore, IUserNotificationRepository userNotificationRepository) { _notificationStore = notificationStore; _userNotificationRepository = userNotificationRepository; }
public NotificationService( INotificationStore store, INotificationSender sender) { _store = store; _sender = sender; }
public NotificationPublisher_Tests() { _store = Substitute.For<INotificationStore>(); _backgroundJobManager = Substitute.For<IBackgroundJobManager>(); _publisher = new NotificationPublisher(_store, _backgroundJobManager); }
public SendNotificationController( INotificationStore notificationStore = null, IFirebaseNotificationSender firebasePushNotificationSender = null) { _notificationStore = notificationStore ?? new NotificationStore(); _firebasePusnNotificationSender = firebasePushNotificationSender ?? new FirebaseNotificationSender(); }
public NotificationCleanupExpritionJob( INotificationStore store, IServiceProvider serviceProvider) { Store = store; ServiceProvider = serviceProvider; }
public DefaultNotificationDispatcher( INotificationStore notificationStore, INotificationPublisher notificationPublisher) { _notificationStore = notificationStore; _notificationPublisher = notificationPublisher; }
public NotificationDispatcher( INotificationStore notificationStore, INotificationPublisher notificationPublisher) { NotificationStore = notificationStore; NotificationPublisher = notificationPublisher; }
public NotificationsController( ILogger <NotificationsController> logger, INotificationStore notificationStore) { _logger = logger; _notificationStore = notificationStore; }
/// <summary> /// Initializes a new instance of the <see cref="NotificationPublisher"/> class. /// </summary> public NotificationPublisher( INotificationStore store, IBackgroundJobManager backgroundJobManager) { _store = store; _backgroundJobManager = backgroundJobManager; AbpSession = NullAbpSession.Instance; }
public NotificationPublisher_Tests() { _store = Substitute.For <INotificationStore>(); _backgroundJobManager = Substitute.For <IBackgroundJobManager>(); _publisher = new NotificationPublisher(_store, _backgroundJobManager, Substitute.For <INotificationDistributer>()); _publisher.UnitOfWorkManager = Substitute.For <IUnitOfWorkManager>(); _publisher.UnitOfWorkManager.Current.Returns(Substitute.For <IActiveUnitOfWork>()); }
/// <summary> /// Initializes a new instance of the <see cref="NotificationPublisher"/> class. /// </summary> public NotificationPublisher( INotificationStore store, IBackgroundJobManager backgroundJobManager ) { _store = store; _backgroundJobManager = backgroundJobManager; }
public NotificationPublisher_Tests() { _store = Substitute.For<INotificationStore>(); _backgroundJobManager = Substitute.For<IBackgroundJobManager>(); _publisher = new NotificationPublisher(_store, _backgroundJobManager, Substitute.For<INotificationDistributer>()); _publisher.UnitOfWorkManager = Substitute.For<IUnitOfWorkManager>(); _publisher.UnitOfWorkManager.Current.Returns(Substitute.For<IActiveUnitOfWork>()); }
public NotificationPublisherTests() { store = Substitute.For <INotificationStore>(); backgroundJobManager = Substitute.For <IBackgroundJobManager>(); publisher = new NotificationPublisher(store, backgroundJobManager, Substitute.For <INotificationDistributer>(), SequentialGuidGenerator.Instance); publisher.UnitOfWorkManager = Substitute.For <IUnitOfWorkManager>(); publisher.UnitOfWorkManager.Current.Returns(Substitute.For <IActiveUnitOfWork>()); }
public NotificationPublisher_Tests() { _store = Substitute.For <INotificationStore>(); _backgroundJobManager = Substitute.For <IBackgroundJobManager>(); _publisher = new NotificationPublisher(_store, _backgroundJobManager, Substitute.For <INotificationConfiguration>(), SequentialGuidGenerator.Instance, LocalIocManager); _publisher.UnitOfWorkManager = Substitute.For <IUnitOfWorkManager>(); _publisher.UnitOfWorkManager.Current.Returns(Substitute.For <IActiveUnitOfWork>()); }
/// <summary> /// Initializes a new instance of the <see cref="NotificationDistributionJob"/> class. /// </summary> public NotificationDistributer( INotificationDefinitionManager notificationDefinitionManager, INotificationStore notificationStore) { _notificationDefinitionManager = notificationDefinitionManager; _notificationStore = notificationStore; RealTimeNotifier = NullRealTimeNotifier.Instance; }
public EmployeeWriterWithEmailAlreadyExistsValidation( IEmployeeWriter employeeWriter, IEmployeeReader employeeReader, INotificationStore notificationStore) { NotificationStore = notificationStore ?? throw new ArgumentNullException(nameof(notificationStore)); EmployeeWriter = employeeWriter ?? throw new ArgumentNullException(nameof(employeeWriter)); EmployeeReader = employeeReader ?? throw new ArgumentNullException(nameof(employeeReader)); }
public MyNotificationAppService( INotificationStore notificationStore, INotificationSender notificationSender, INotificationDefinitionManager notificationDefinitionManager) { NotificationStore = notificationStore; NotificationSender = notificationSender; NotificationDefinitionManager = notificationDefinitionManager; }
public NotificationPublishJob( IOptions <AbpNotificationOptions> options, INotificationStore store, IServiceProvider serviceProvider) { Store = store; Options = options.Value; ServiceProvider = serviceProvider; }
/// <summary> /// Constructor. /// </summary> /// <param name="store"></param> /// <param name="factory"></param> public NotificationRepository(INotificationStore store, INotificationFactory factory) { if (store == null || factory == null) { throw new ArgumentNullOrEmptyException(); } _store = store; _factory = factory; }
/// <summary> /// Initializes a new instance of the <see cref="NotificationSubscriptionManager" /> class. /// </summary> public NotificationSubscriptionManager( INotificationStore store, INotificationDefinitionManager notificationDefinitionManager, IGuidGenerator guidGenerator) { this.store = store; this.notificationDefinitionManager = notificationDefinitionManager; this.guidGenerator = guidGenerator; }
public ManageController( IConfigurationRoot configuration, INotificationStore notificationStore, INotificationHubStore notificationHubStore) { _configuration = configuration; _notificationStore = notificationStore; _notificationHubStore = notificationHubStore; }
public EmployeeController( IEmployeeWriter employeeWriter, IEmployeeReader employeeReader, INotificationStore notificationStore) { NotificationStore = notificationStore ?? throw new ArgumentNullException(nameof(notificationStore)); EmployeeReader = employeeReader ?? throw new ArgumentNullException(nameof(employeeReader)); EmployeeWriter = employeeWriter ?? throw new ArgumentNullException(nameof(employeeWriter)); }
/// <summary> /// Initializes a new instance of the <see cref="NotificationSubscriptionManager"/> class. /// </summary> public NotificationSubscriptionManager( INotificationStore store, INotificationDefinitionManager notificationDefinitionManager, IGuidGenerator guidGenerator) { _store = store; _notificationDefinitionManager = notificationDefinitionManager; _guidGenerator = guidGenerator; }
public NotificationProcessor( ISubscriptionStore subscriptionStore, INotificationStore notificationStore, ISmsProvider smsProvider) { _subscriptionStore = subscriptionStore; _notificationStore = notificationStore; _smsProvider = smsProvider; }
/// <summary> /// Initializes a new instance of the <see cref="NotificationManager"/> class. /// </summary> public NotificationManager( INotificationStore store, IBackgroundJobManager backgroundJobManager) { _store = store; _backgroundJobManager = backgroundJobManager; Logger = NullLogger.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; Session = NullInfrastructureSession.Instance; }
/// <summary> /// Initializes a new instance of the <see cref="NotificationPublisher"/> class. /// </summary> public NotificationPublisher( INotificationStore store, IBackgroundJobManager backgroundJobManager, INotificationDistributer notificationDistributer) { this._store = store; this._backgroundJobManager = backgroundJobManager; this._notificationDistributer = notificationDistributer; this.AbpSession = NullAbpSession.Instance; }
public SysNotificationAppService( INotificationStore notificationStore, ICacheManagerExtens cacheManagerExtens, ISysNotificationInfoRepository sysNotificationInfoRepository ) { _notificationStore = notificationStore; _cacheManagerExtens = cacheManagerExtens; _sysNotificationInfoRepository = sysNotificationInfoRepository; }
/// <summary> /// Initializes a new instance of the <see cref="NotificationDistributionJob"/> class. /// 初始化<see cref="NotificationDistributionJob"/>类新的实例 /// </summary> public NotificationDistributer( INotificationDefinitionManager notificationDefinitionManager, INotificationStore notificationStore, IUnitOfWorkManager unitOfWorkManager) { _notificationDefinitionManager = notificationDefinitionManager; _notificationStore = notificationStore; _unitOfWorkManager = unitOfWorkManager; RealTimeNotifier = NullRealTimeNotifier.Instance; }
/// <summary> /// Initializes a new instance of the <see cref="NotificationSubscriptionManager"/> class. /// </summary> public NotificationSubscriptionManager( INotificationStore store, INotificationDefinitionManager notificationDefinitionManager, IClock clock, ICurrentTenant currentTenant) { _store = store; _notificationDefinitionManager = notificationDefinitionManager; _clock = clock; _currentTenant = currentTenant; }
/// <summary> /// Initializes a new instance of the <see cref="NotificationDistributionJob"/> class. /// </summary> public NotificationDistributer( INotificationDefinitionManager notificationDefinitionManager, INotificationStore notificationStore, IUnitOfWorkManager unitOfWorkManager) { _notificationDefinitionManager = notificationDefinitionManager; _notificationStore = notificationStore; _unitOfWorkManager = unitOfWorkManager; RealTimeNotifier = NullRealTimeNotifier.Instance; }
/// <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; }
public NotificationStore_Tests() { var defaultNotificationDistributor = LocalIocManager.Resolve <DefaultNotificationDistributer>(); LocalIocManager.IocContainer.Register( Component.For <INotificationDistributer>().Instance(defaultNotificationDistributor) .LifestyleSingleton() .IsDefault() ); _notificationPublisher = LocalIocManager.Resolve <INotificationPublisher>(); _notificationStore = LocalIocManager.Resolve <INotificationStore>(); }
public NotificationManager( INotificationStore store, INotificationDefinitionManager notificationDefinitionManager, IUnitOfWorkManager unitOfWorkManager, IBackgroundJobManager backgroundJobManager) { _store = store; _notificationDefinitionManager = notificationDefinitionManager; _unitOfWorkManager = unitOfWorkManager; _backgroundJobManager = backgroundJobManager; Logger = NullLogger.Instance; }
public UserNotificationQueue( INotificationStore store, INotificationDefinitionManager notificationDefinitionManager, IUnitOfWorkManager unitOfWorkManager, IRealTimeNotifier realTimeNotifier) { _store = store; _notificationDefinitionManager = notificationDefinitionManager; _unitOfWorkManager = unitOfWorkManager; _realTimeNotifier = realTimeNotifier; Logger = NullLogger.Instance; }
public NotificationManager( INotificationStore store, INotificationDefinitionManager notificationDefinitionManager, IUnitOfWorkManager unitOfWorkManager, IUserNotificationQueue userNotificationQueue) { _store = store; _notificationDefinitionManager = notificationDefinitionManager; _unitOfWorkManager = unitOfWorkManager; _userNotificationQueue = userNotificationQueue; Logger = NullLogger.Instance; }
/// <summary> /// Initializes a new instance of the <see cref="NotificationSubscriptionManager"/> class. /// 初始化一个新实例<see cref="NotificationSubscriptionManager"/>通知订阅管理类。 /// </summary> public NotificationSubscriptionManager(INotificationStore store, INotificationDefinitionManager notificationDefinitionManager) { _store = store; _notificationDefinitionManager = notificationDefinitionManager; }
/// <summary> /// Initializes a new instance of the <see cref="UserNotificationManager"/> class. /// </summary> public UserNotificationManager(INotificationStore store) { _store = store; }
/// <summary> /// Initializes a new instance of the <see cref="NotificationSubscriptionManager"/> class. /// </summary> public NotificationSubscriptionManager(INotificationStore store) { _store = store; }