EventHandlers.EventHandlerExtensions Class
Namespace: Nucleus.Abstractions.EventHandlers
Assembly: Nucleus.Abstractions.dll
Extension methods for adding Nucleus system event handlers.
Methods
AddScopedSystemEventHandler<TModel, TEvent, THandler>
(IServiceCollection) Method
AddScopedSystemEventHandler<TModel, TEvent, THandler> (Microsoft.Extensions.DependencyInjection.IServiceCollection)
Add a scoped system event handler of THandler for the specified TModel, TEvent.
AddSingletonSystemEventHandler<TModel, TEvent, THandler>
(IServiceCollection) Method
AddSingletonSystemEventHandler<TModel, TEvent, THandler> (Microsoft.Extensions.DependencyInjection.IServiceCollection)
Add a singleton system event handler of THandler for the specified TModel, TEvent.