Class LocalizationInstaller
Abstract base class for installing localization services and use cases.
Implements
Inherited Members
Namespace: Serenity.Localization.Installation.Installers
Assembly: Serenity.Localization.Installation.dll
Syntax
public abstract class LocalizationInstaller : IInstaller
Constructors
LocalizationInstaller()
Declaration
protected LocalizationInstaller()
Fields
_service
Declaration
protected ILocalizationService _service
Field Value
| Type | Description |
|---|---|
| ILocalizationService | Gets the localization service. |
_serviceFactory
Declaration
protected ILocalizationServiceFactory _serviceFactory
Field Value
| Type | Description |
|---|---|
| ILocalizationServiceFactory | Gets the localization service factory. |
_useCases
Declaration
protected LocalizationUseCases _useCases
Field Value
| Type | Description |
|---|---|
| LocalizationUseCases | Gets the localization use cases. |
Methods
GetService()
Gets the localization service.
Declaration
public ILocalizationService GetService()
Returns
| Type | Description |
|---|---|
| ILocalizationService | The localization service. |
GetUseCases()
Gets the localization use cases.
Declaration
public LocalizationUseCases GetUseCases()
Returns
| Type | Description |
|---|---|
| LocalizationUseCases | The localization use cases. |
Install(LocalizationInstallerInstallInput)
Installs the localization services and use cases.
Declaration
public abstract void Install(LocalizationInstallerInstallInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| LocalizationInstallerInstallInput | input | The input data transfer object. |
InstallService(ILocalizationSettings, IEventDispatcherService, IGameSettingsService)
Installs the localization service.
Declaration
protected abstract ILocalizationService InstallService(ILocalizationSettings uiSettings, IEventDispatcherService eventDispatcherService, IGameSettingsService gameSettingsService)
Parameters
| Type | Name | Description |
|---|---|---|
| ILocalizationSettings | uiSettings | The UI settings instance. |
| IEventDispatcherService | eventDispatcherService | The event dispatcher service instance. |
| IGameSettingsService | gameSettingsService | The game settings service instance. |
Returns
| Type | Description |
|---|---|
| ILocalizationService | The localization service instance. |
InstallServiceFactory()
Installs the localization service factory.
Declaration
protected abstract ILocalizationServiceFactory InstallServiceFactory()
Returns
| Type | Description |
|---|---|
| ILocalizationServiceFactory | The localization service factory. |
InstallUseCases(ILocalizationService)
Installs the localization use cases.
Declaration
protected abstract LocalizationUseCases InstallUseCases(ILocalizationService service)
Parameters
| Type | Name | Description |
|---|---|---|
| ILocalizationService | service | The localization service instance. |
Returns
| Type | Description |
|---|---|
| LocalizationUseCases | The localization use cases. |