Class EventServiceConfigurationProviderExtensions
Provides extension methods for Microsoft.
Inheritance
System.Object
EventServiceConfigurationProviderExtensions
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: EPiServer.Events.dll
Version: 12.0.3Syntax
public static class EventServiceConfigurationProviderExtensions : Object
Methods
AddEventProvider<TProvider>(IServiceCollection)
Adds the event provider to the CMS remote event system.
Declaration
public static IServiceCollection AddEventProvider<TProvider>(this IServiceCollection services)
where TProvider : EventProvider
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
services | The cms builder. |
Returns
Type | Description |
---|---|
Microsoft. |
The cms builder |
Type Parameters
Name | Description |
---|---|
TProvider | The type of Event |
AddEventProvider<TProvider, TProviderOptions>(IServiceCollection, Action<TProviderOptions>)
Adds the event provider to the CMS remote event system.
Declaration
public static IServiceCollection AddEventProvider<TProvider, TProviderOptions>(this IServiceCollection services, Action<TProviderOptions> configure)
where TProvider : EventProvider where TProviderOptions : class, new()
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
services | The cms builder. |
System. |
configure | The method used to setup the provider options. |
Returns
Type | Description |
---|---|
Microsoft. |
The cms builder |
Type Parameters
Name | Description |
---|---|
TProvider | The type of Event |
TProviderOptions | The type of the options class used to configure the Event |