Class LocalizationServiceConfigurationProviderExtensions
Provides extension methods for IServiceConfigurationProvider implemenations.
Inheritance
Inherited Members
Namespace: EPiServer.ServiceLocation
Assembly: EPiServer.Framework.dll
Version: 11.20.7Syntax
public static class LocalizationServiceConfigurationProviderExtensions
Methods
AddEmbeddedLocalization<TAssembly>(IServiceConfigurationProvider)
Adds embedded localizations from the given System.Reflection.Assembly to the LocalizationService.
Declaration
public static IServiceConfigurationProvider AddEmbeddedLocalization<TAssembly>(this IServiceConfigurationProvider services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceConfigurationProvider | services | The service configuration provider. |
Returns
| Type | Description |
|---|---|
| IServiceConfigurationProvider | The service configuration provider |
Type Parameters
| Name | Description |
|---|---|
| TAssembly | A type in the System.Reflection.Assembly which contains embedded localization to be added. |
AddLocalizationProvider<TProvider>(IServiceConfigurationProvider)
Adds a localization provider to the CMS localization system.
Declaration
public static IServiceConfigurationProvider AddLocalizationProvider<TProvider>(this IServiceConfigurationProvider services)
where TProvider : LocalizationProvider
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 LocalizationProvider to add. |
AddLocalizationProvider<TProvider, TProviderOptions>(IServiceConfigurationProvider, Action<TProviderOptions>)
Adds a localization provider to the cms localization system.
Declaration
public static IServiceConfigurationProvider AddLocalizationProvider<TProvider, TProviderOptions>(this IServiceConfigurationProvider services, Action<TProviderOptions> configure)
where TProvider : LocalizationProvider 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 LocalizationProvider to add. |
| TProviderOptions | The type of the options class used to configure the LocalizationProvider. |