NanoByte.Common 2.11.0
NanoByte.Common.StagedOperation Class Referenceabstract

Common base class for operations that are first staged and then either committed or rolled back. More...

Inheritance diagram for NanoByte.Common.StagedOperation:

Public Member Functions

void Stage ()
 Stages changes for later Commit or rollback.
 
void Commit ()
 Commits the Staged changes.
 
virtual void Dispose ()
 Performs a rollback of all changes made by Stage if Commit has not been called and completed yet.
 

Protected Member Functions

abstract void OnStage ()
 Template method to stage changes.
 
abstract void OnCommit ()
 Template method to commit the changes made by OnStage.
 
abstract void OnRollback ()
 Template method to revert any changes made by OnStage.
 

Detailed Description

Common base class for operations that are first staged and then either committed or rolled back.


The documentation for this class was generated from the following file: