Class IOFilePersistenceDriversFactory
Factory for creating IO file persistence drivers.
Implements
Inherited Members
Namespace: Serenity.FilePersistence.Infrastructure.Factories
Assembly: Serenity.IOFilePersistence.Infrastructure.dll
Syntax
public class IOFilePersistenceDriversFactory : IFilePersistenceDriversFactory
Constructors
IOFilePersistenceDriversFactory()
Declaration
public IOFilePersistenceDriversFactory()
Methods
CreateAtomicFileWriter(string, ILogService)
Create a new instance of IAtomicFileWriter.
Declaration
public IFileWriterService CreateAtomicFileWriter(string id, ILogService logService)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | |
| ILogService | logService |
Returns
| Type | Description |
|---|---|
| IFileWriterService | A new instance of IAtomicFileWriter. |
CreateFileSystemService(ILogService)
Create a new instance of IFileSystemService.
Declaration
public IFileSystemService CreateFileSystemService(ILogService logService)
Parameters
| Type | Name | Description |
|---|---|---|
| ILogService | logService | The log service for logging purposes. |
Returns
| Type | Description |
|---|---|
| IFileSystemService | A new instance of IFileSystemService. |
CreatePathService(string, string, ILogService)
Create a new instance of IPathService.
Declaration
public IPathService CreatePathService(string companyName, string productName, ILogService logService)
Parameters
| Type | Name | Description |
|---|---|---|
| string | companyName | The company name for path service initialization. |
| string | productName | The product name for path service initialization. |
| ILogService | logService | The log service for logging purposes. |
Returns
| Type | Description |
|---|---|
| IPathService | A new instance of IPathService. |