Exemplo n.º 1
0
 public NotificationsMiddleware(RequestDelegate next, INotificationRegistry registry,
                                ILoggerFactory loggerFactory)
 {
     _next     = next;
     _registry = registry;
     _logger   = loggerFactory.CreateLogger <NotificationsMiddleware>();
 }
Exemplo n.º 2
0
 public NotificationMessageHandler(
     ILogger <NotificationMessageHandler> logger,
     IOptions <NotificationOptions> options,
     INotificationRegistry notificationRegistry,
     ITaskService taskService)
 {
     _logger = logger;
     _notificationRegistry = notificationRegistry;
     _taskService          = taskService;
 }
Exemplo n.º 3
0
 public NotificationService(
     ILogger <NotificationService> logger,
     IOptions <NotificationOptions> options,
     INotificationRegistry notificationRegistry,
     IMessageDispatcher messageDispatcher)
 {
     _logger               = logger;
     _options              = options.Value;
     _messageDispatcher    = messageDispatcher;
     _notificationRegistry = notificationRegistry;
 }
Exemplo n.º 4
0
 public void RegisterHandlers(INotificationRegistry <TestNotification> registry)
 {
     registry.AddHandler <Handler>();
 }
 public abstract void RegisterHandlers(INotificationRegistry <TNotification> registry);