Class FileRepoStage
Represents a staged FileRepoStagedTransaction, returned by StageAsync(CancellationToken). Committing the stage commits the transaction.
Implements
Namespace: FulcrumFS
Assembly: FulcrumFS.Local.dll
Syntax
public sealed class FileRepoStage : IFileRepoStage
Remarks
A stage belongs to its transaction and is not disposable on its own: disposing the transaction before the stage has been committed leaves the files the transaction added and the deletions it staged indeterminate for the cleaner to resolve (see DisposeAsync()), and RollbackAsync(CancellationToken) rolls the transaction back.
Methods
| Name | Description |
|---|---|
| CommitAsync(CancellationToken) | Commits the staged transaction, making the files it added and deleted permanent in the repository. Call this after the application's database has committed. |