FulcrumFS FulcrumFS
FulcrumFS FulcrumFS
DocFX + Singulink = ♥

Search Results for

    Constructor FileRepo

    FileRepo(FileRepoOptions)

    Initializes a new instance of the FileRepo class with the specified options.

    Declaration
    public FileRepo(FileRepoOptions options)
    Parameters
    Type Name Description
    FileRepoOptions options
    Remarks

    The options are checked (see Validate()) and frozen (see IsFrozen), after which they can't be changed.

    Exceptions
    Type Condition
    ArgumentException

    The options are not valid, such as when the base directory or the minimum format version is not set. The message lists every problem.

    FileRepo(IOptions<FileRepoOptions>)

    Initializes a new instance of the FileRepo class with the specified options.

    Declaration
    public FileRepo(IOptions<FileRepoOptions> options)
    Parameters
    Type Name Description
    IOptions<FileRepoOptions> options
    Exceptions
    Type Condition
    ArgumentException

    The options are not valid, such as when the base directory or the minimum format version is not set. The message lists every problem.

    FileRepo(IAbsoluteDirectoryPath, RepoFormatVersion, Action<FileRepoOptions>?)

    Initializes a new instance of the FileRepo class with the specified base directory, minimum format version and optional configuration action.

    Declaration
    public FileRepo(IAbsoluteDirectoryPath baseDirectory, RepoFormatVersion minimumFormatVersion, Action<FileRepoOptions>? configure = null)
    Parameters
    Type Name Description
    IAbsoluteDirectoryPath baseDirectory

    The base directory for the file repository. Must be an existing directory in the file system.

    RepoFormatVersion minimumFormatVersion

    The lowest format version the repository has once it is opened: a new repository is created at it and an older one is upgraded to it; see MinimumFormatVersion.

    Action<FileRepoOptions> configure

    An optional action that configures additional options.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    minimumFormatVersion is not Version1, Version2 or Latest, or an option that configure sets is out of range.

    ArgumentException

    baseDirectory, or a base directory that configure sets, has a name that is not friendly (see BaseDirectory).

    © Singulink. All rights reserved.