Class IOFilePersistenceInstaller
Installer for setting up IO file persistence services.
Namespace: Serenity.OperativeSystem.Windows.FilePersistence.Installation.Installers
Assembly: Serenity.IOFilePersistence.Installation.dll
Syntax
public class IOFilePersistenceInstaller : FilePersistenceInstaller
Remarks
Uses IOFilePersistenceDriversFactory to create the necessary services.
Constructors
IOFilePersistenceInstaller(string, string)
The constructor for IOFilePersistenceInstaller.
Declaration
public IOFilePersistenceInstaller(string companyName, string productName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | companyName | The name of the company. |
| string | productName | The name of the product. |
Methods
InstallAtomicFileWriterService(string, ILogService)
Get the atomic file writer service.
Declaration
protected override IFileWriterService InstallAtomicFileWriterService(string id, ILogService logService)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The identifier for the atomic file writer service. |
| ILogService | logService | The log service to be used. |
Returns
| Type | Description |
|---|---|
| IFileWriterService | An instance of IAtomicFileWriter. |
InstallFileSystemService(ILogService)
Get the file persistence drivers factory.
Declaration
protected override IFileSystemService InstallFileSystemService(ILogService logService)
Parameters
| Type | Name | Description |
|---|---|---|
| ILogService | logService | The log service to be used. |
Returns
| Type | Description |
|---|---|
| IFileSystemService | An instance of IFilePersistenceDriversFactory. |
InstallPathService(string, string, ILogService)
Get the path service initialized with company and product names.
Declaration
protected override IPathService InstallPathService(string companyName, string productName, ILogService logService)
Parameters
| Type | Name | Description |
|---|---|---|
| string | companyName | The name of the company. |
| string | productName | The name of the product. |
| ILogService | logService | The log service to be used. |
Returns
| Type | Description |
|---|---|
| IPathService | An instance of IPathService. |