logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IFilePersistenceDriversFactory

    Factory interface for creating file persistence drivers.
    Encapsulates the creation logic and configuration of file persistence components.

    Namespace: Serenity.FilePersistence.Application.Interfaces.Factories
    Assembly: Serenity.Global.Application.dll
    Syntax
    public interface IFilePersistenceDriversFactory

    Methods

    CreateAtomicFileWriter(string, ILogService)

    Declaration
    IFileWriterService CreateAtomicFileWriter(string id, ILogService logService)
    Parameters
    Type Name Description
    string id

    The identifier for the atomic file writer instance.

    ILogService logService

    The log service for logging purposes.

    Returns
    Type Description
    IFileWriterService

    Creates a new atomic file writer instance.

    CreateFileSystemService(ILogService)

    Declaration
    IFileSystemService CreateFileSystemService(ILogService logService)
    Parameters
    Type Name Description
    ILogService logService

    The log service for logging purposes.

    Returns
    Type Description
    IFileSystemService

    Creates a new file system service instance.

    CreatePathService(string, string, ILogService)

    Declaration
    IPathService CreatePathService(string companyName, string productName, ILogService logService)
    Parameters
    Type Name Description
    string companyName

    The company name for path construction.

    string productName

    The product name for path construction.

    ILogService logService

    The log service for logging purposes.

    Returns
    Type Description
    IPathService

    Creates a new path service instance with the specified company and product names.

    In this article
    © 2026 Serenity. All Rights Reserved