コード例 #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));
 }
コード例 #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));
 }
コード例 #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));
 }
コード例 #4
0
 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));
 }