Constructor FileRepoCleaner
FileRepoCleaner(FileRepoCleaningOptions)
Initializes a new instance of the FileRepoCleaner class with the specified options.
Declaration
public FileRepoCleaner(FileRepoCleaningOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| FileRepoCleaningOptions | 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 is not set. The message lists every problem. |
FileRepoCleaner(IOptions<FileRepoCleaningOptions>)
Initializes a new instance of the FileRepoCleaner class with the specified options.
Declaration
public FileRepoCleaner(IOptions<FileRepoCleaningOptions> options)
Parameters
| Type | Name | Description |
|---|---|---|
| IOptions<FileRepoCleaningOptions> | options |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The options are not valid, such as when the base directory is not set. The message lists every problem. |
FileRepoCleaner(IAbsoluteDirectoryPath, Action<FileRepoCleaningOptions>?)
Initializes a new instance of the FileRepoCleaner class with the specified base directory and optional configuration action.
Declaration
public FileRepoCleaner(IAbsoluteDirectoryPath baseDirectory, Action<FileRepoCleaningOptions>? configure = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IAbsoluteDirectoryPath | baseDirectory | The base directory of the file repository to be cleaned. |
| Action<FileRepoCleaningOptions> | configure | An optional action that configures additional options. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | An option that |
| ArgumentException |
|