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 |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The base directory or the minimum format version is not set in the options. |
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 base directory or the minimum format version is not set in the options. |
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. |