Class InfoObjectEventsServiceCollectionExtensions
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Contains extension methods for Microsoft.Extensions.DependencyInjection.IServiceCollection.
public static class InfoObjectEventsServiceCollectionExtensions
- Inheritance
-
objectInfoObjectEventsServiceCollectionExtensions
Methods
AddInfoObjectEventHandler<TInfoObjectEvent, THandler>(IServiceCollection)
Adds an info object event handler to the collection of services.
public static IServiceCollection AddInfoObjectEventHandler<TInfoObjectEvent, THandler>(this IServiceCollection services) where TInfoObjectEvent : IInfoObjectEvent where THandler : class, IInfoObjectEventHandler<TInfoObjectEvent>
Parameters
services
IServiceCollectionCollection of services to add to.
Returns
- IServiceCollection
Returns the
services
instance to chain further configuration.
Type Parameters
TInfoObjectEvent
Type of the info object event handled.
THandler
Type implementing the event handler.
Exceptions
- ArgumentNullException
Thrown when
services
is null.
- See Also
-
IInfoObjectEventHandler<TInfoObjectEvent>