Class NotificationHandlers<T>
- Namespace
- Arc4u.Dispatcher.Notification
- Assembly
- Arc4u.Dispatcher.dll
Implement INotificationHandlers<T> and fetch from the DI the INotificationHandler<T>.
public class NotificationHandlers<T> : INotificationHandlers<T>
Type Parameters
T
- Inheritance
-
NotificationHandlers<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
NotificationHandlers(IServiceProvider)
Initializes a new instance of the NotificationHandlers<T> class and resolves all the registered handlers from serviceProvider.
public NotificationHandlers(IServiceProvider serviceProvider)
Parameters
serviceProviderIServiceProviderThe service provider used to resolve the handlers.
Properties
Handlers
Gets the registered handlers.
public IEnumerable<INotificationHandler<T>> Handlers { get; }