Common base class for operations that are first staged and then either committed or rolled back.
More...
Common base class for operations that are first staged and then either committed or rolled back.
◆ Commit()
void NanoByte.Common.StagedOperation.Commit |
( |
| ) |
|
|
inline |
Commits the Staged changes.
◆ Dispose()
void NanoByte.Common.StagedOperation.Dispose |
( |
| ) |
|
|
inline |
Performs a rollback of all changes made by Stage if Commit has not been called and completed yet.
◆ OnCommit()
abstract void NanoByte.Common.StagedOperation.OnCommit |
( |
| ) |
|
|
protectedpure virtual |
Template method to commit the changes made by OnStage.
◆ OnRollback()
abstract void NanoByte.Common.StagedOperation.OnRollback |
( |
| ) |
|
|
protectedpure virtual |
Template method to revert any changes made by OnStage.
◆ OnStage()
abstract void NanoByte.Common.StagedOperation.OnStage |
( |
| ) |
|
|
protectedpure virtual |
Template method to stage changes.
◆ Stage()
void NanoByte.Common.StagedOperation.Stage |
( |
| ) |
|
|
inline |
Stages changes for later Commit or rollback.
The documentation for this class was generated from the following file:
- Common/StagedOperation.cs