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 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. |