Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class EventServiceConfigurationProviderExtensions

Provides extension methods for Microsoft.Extensions.DependencyInjection.IServiceCollection implemenations.

Inheritance
System.Object
EventServiceConfigurationProviderExtensions
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: EPiServer.Events.dll
Version: 12.0.3
Syntax
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.Extensions.DependencyInjection.IServiceCollection services

The cms builder.

Returns
Type Description
Microsoft.Extensions.DependencyInjection.IServiceCollection

The cms builder

Type Parameters
Name Description
TProvider

The type of EventProvider to add.

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.Extensions.DependencyInjection.IServiceCollection services

The cms builder.

System.Action<TProviderOptions> configure

The method used to setup the provider options.

Returns
Type Description
Microsoft.Extensions.DependencyInjection.IServiceCollection

The cms builder

Type Parameters
Name Description
TProvider

The type of EventProvider to add.

TProviderOptions

The type of the options class used to configure the EventProvider.