Exemple #1
0
 public DeleteSingleCommandHandler(IHttpContextAccessor httpContextAccessor,
                                   INotificationRepository notificationRepository, INotificationCache notificationCache)
 {
     _httpContextAccessor    = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     _notificationRepository = notificationRepository ?? throw new ArgumentNullException(nameof(notificationRepository));
     _notificationCache      = notificationCache ?? throw new ArgumentNullException(nameof(notificationCache));
 }
Exemple #2
0
 public RefreshCacheAndSeedUsersCommandHandler(ILogger <RefreshCacheAndSeedUsersCommandHandler> logger,
                                               INotificationCache notificationCache, IConnectionManager connectionManager,
                                               IHubContext <NotificationHub, INotificationClient> notificationHubContext)
 {
     _logger                 = logger ?? throw new ArgumentNullException(nameof(logger));
     _notificationCache      = notificationCache ?? throw new ArgumentNullException(nameof(notificationCache));
     _connectionManager      = connectionManager ?? throw new ArgumentNullException(nameof(connectionManager));
     _notificationHubContext = notificationHubContext ?? throw new ArgumentNullException(nameof(notificationHubContext));
 }
Exemple #3
0
 public NotificationIntegrationEventHandler(ILogger <NotificationIntegrationEventHandler> logger,
                                            IConnectionManager connectionManager, IHubContext <NotificationHub, INotificationClient> notificationHubContext,
                                            INotificationRepository notificationRepository, INotificationCache notificationCache)
 {
     _logger                 = logger ?? throw new ArgumentNullException(nameof(logger));
     _connectionManager      = connectionManager ?? throw new ArgumentNullException(nameof(connectionManager));
     _notificationHubContext = notificationHubContext ?? throw new ArgumentNullException(nameof(notificationHubContext));
     _notificationRepository = notificationRepository ?? throw new ArgumentNullException(nameof(notificationRepository));
     _notificationCache      = notificationCache ?? throw new ArgumentNullException(nameof(notificationCache));
 }
 public NotificationHub(IConnectionManager connectionManager, IMediator mediator, INotificationCache notificationCache)
 {
     _connectionManager = connectionManager ?? throw new ArgumentNullException(nameof(connectionManager));
     _mediator          = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _notificationCache = notificationCache ?? throw new ArgumentNullException(nameof(notificationCache));
 }