Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Class EventServiceConfigurationProviderExtensions

Provides extension methods for IServiceConfigurationProvider implemenations.

Inheritance
System.Object
EventServiceConfigurationProviderExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.ServiceLocation
Assembly: EPiServer.Events.dll
Version: 11.20.7
Syntax
public static class EventServiceConfigurationProviderExtensions

Methods

AddEventProvider<TProvider>(IServiceConfigurationProvider)

Adds the event provider to the CMS remote event system.

Declaration
public static IServiceConfigurationProvider AddEventProvider<TProvider>(this IServiceConfigurationProvider services)
    where TProvider : EventProvider
Parameters
Type Name Description
IServiceConfigurationProvider services

The service configuration provider.

Returns
Type Description
IServiceConfigurationProvider

The service configuration provider

Type Parameters
Name Description
TProvider

The type of EventProvider to add.

AddEventProvider<TProvider, TProviderOptions>(IServiceConfigurationProvider, Action<TProviderOptions>)

Adds the event provider to the CMS remote event system.

Declaration
public static IServiceConfigurationProvider AddEventProvider<TProvider, TProviderOptions>(this IServiceConfigurationProvider services, Action<TProviderOptions> configure)
    where TProvider : EventProvider where TProviderOptions : class, new()
Parameters
Type Name Description
IServiceConfigurationProvider services

The service configuration provider.

System.Action<TProviderOptions> configure

The method used to setup the provider options.

Returns
Type Description
IServiceConfigurationProvider

The service configuration provider

Type Parameters
Name Description
TProvider

The type of EventProvider to add.

TProviderOptions

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