Class ProviderBasedLocalizationServiceExtensions
Provider based implementation of LocalizationService. Uses LocalizationProviders to load localized resources.
Inheritance
System.Object
ProviderBasedLocalizationServiceExtensions
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.Framework.Localization
Assembly: EPiServer.Framework.AspNet.dll
Version: 11.20.7Syntax
public static class ProviderBasedLocalizationServiceExtensions
Methods
CreateInstance(ProviderBasedLocalizationService, ResourceKeyHandler, EPiServerFrameworkSection)
Creates a provider based localization service with providers from the given configuration.
Declaration
[Obsolete("Use constructor and add instantiated providers through AddProvider method")]
public static LocalizationService CreateInstance(this ProviderBasedLocalizationService service, ResourceKeyHandler keyHandler, EPiServerFrameworkSection configuration)
Parameters
Type | Name | Description |
---|---|---|
ProviderBasedLocalizationService | service | The service that is extended |
ResourceKeyHandler | keyHandler | The key handler to use for the localization service. |
EPiServerFrameworkSection | configuration | The configuration to read. |
Returns
Type | Description |
---|---|
LocalizationService | A localization service. |
InitializeProviders(ProviderBasedLocalizationService, ProviderSettingsCollection)
Initializes a set of providers from the provided System.Configuration.ProviderSettingsCollection.
Declaration
[Obsolete("Add instantiated providers using through AddProvider property")]
public static void InitializeProviders(this ProviderBasedLocalizationService service, ProviderSettingsCollection settings)
Parameters
Type | Name | Description |
---|---|---|
ProviderBasedLocalizationService | service | The service that is extended |
System.Configuration.ProviderSettingsCollection | settings | The System.Configuration.ProviderSettingsCollection to initialize the provider collection with. |