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