logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class FilePersistenceInstaller

    Abstract installer for FilePersistence (common flow).

    Inheritance
    object
    PersistenceInstaller
    FilePersistenceInstaller
    Implements
    IInstaller
    Inherited Members
    PersistenceInstaller._blobStore
    PersistenceInstaller._keyValueStore
    PersistenceInstaller._useCases
    PersistenceInstaller.InstallKeyValueStore(PersistenceInstallerInstallInput)
    PersistenceInstaller.GetStore()
    PersistenceInstaller.GetKeyValueStore()
    PersistenceInstaller.GetUseCases()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.FilePersistence.Installation.Installers
    Assembly: Serenity.Global.Installation.dll
    Syntax
    public abstract class FilePersistenceInstaller : PersistenceInstaller, IInstaller

    Constructors

    FilePersistenceInstaller(string, string)

    Initializes a new instance of the FilePersistenceInstaller class with the specified company and product names.

    Declaration
    public FilePersistenceInstaller(string companyName, string productName)
    Parameters
    Type Name Description
    string companyName
    string productName

    Fields

    _companyName

    Declaration
    protected readonly string _companyName
    Field Value
    Type Description
    string

    Company name for path construction.

    _factory

    Declaration
    protected IFilePersistenceDriversFactory _factory
    Field Value
    Type Description
    IFilePersistenceDriversFactory

    Factory for creating file persistence drivers.

    _productName

    Declaration
    protected readonly string _productName
    Field Value
    Type Description
    string

    Product name for path construction.

    Methods

    GetPathServiceInstance()

    Declaration
    public IPathService GetPathServiceInstance()
    Returns
    Type Description
    IPathService

    Install(PersistenceInstallerInstallInput)

    Installs the file persistence service.

    Declaration
    public override void Install(PersistenceInstallerInstallInput input)
    Parameters
    Type Name Description
    PersistenceInstallerInstallInput input

    The installation input data transfer object.

    Overrides
    PersistenceInstaller.Install(PersistenceInstallerInstallInput)

    InstallAtomicFileWriterService(string, ILogService)

    Installs the atomic file writer service.

    Declaration
    protected abstract IFileWriterService InstallAtomicFileWriterService(string id, ILogService logService)
    Parameters
    Type Name Description
    string id
    ILogService logService
    Returns
    Type Description
    IFileWriterService

    InstallBlobStore(PersistenceInstallerInstallInput)

    Installs the blob store.

    Declaration
    protected override IBlobStore InstallBlobStore(PersistenceInstallerInstallInput input)
    Parameters
    Type Name Description
    PersistenceInstallerInstallInput input

    The installation input data transfer object.

    Returns
    Type Description
    IBlobStore

    The installed blob store.

    Overrides
    PersistenceInstaller.InstallBlobStore(PersistenceInstallerInstallInput)

    InstallFileSystemService(ILogService)

    Installs the file system service.

    Declaration
    protected abstract IFileSystemService InstallFileSystemService(ILogService logService)
    Parameters
    Type Name Description
    ILogService logService
    Returns
    Type Description
    IFileSystemService

    InstallPathService(string, string, ILogService)

    Installs the path service.

    Declaration
    protected abstract IPathService InstallPathService(string companyName, string productName, ILogService logService)
    Parameters
    Type Name Description
    string companyName
    string productName
    ILogService logService
    Returns
    Type Description
    IPathService

    InstallUseCases(IBlobStore)

    Installs the persistence use cases.

    Declaration
    protected override PersistenceUseCases InstallUseCases(IBlobStore store)
    Parameters
    Type Name Description
    IBlobStore store

    The blob store to be used by the use cases.

    Returns
    Type Description
    PersistenceUseCases

    The installed persistence use cases.

    Overrides
    PersistenceInstaller.InstallUseCases(IBlobStore)

    Implements

    IInstaller
    In this article
    © 2026 Serenity. All Rights Reserved