Method EnumerateFilesAsync
EnumerateFilesAsync(CancellationToken)
Enumerates every file group in the repository. Intended for recovery and audit tooling.
Declaration
IAsyncEnumerable<RepoFileEntry> EnumerateFilesAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | A cancellation token that cancels the enumeration. |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<RepoFileEntry> |
Remarks
This is for rare, deliberate operations such as reconciling the repository with an application database restored to an earlier point in time. It reads the whole repository, which on a large one is a long operation, so it is not meant for routine use.
The order of the results is unspecified, and files added or deleted while the enumeration is in progress may or may not appear.