Common base class for operations that are first staged and then either committed or rolled back.
public abstract class StagedOperation : Object
Commits the Stage()d changes.
public void Commit()
Performs a rollback of all changes made by Stage() if Commit() has not been called and completed yet.
public virtual void Dispose()
Template method to commit the changes made by OnStage().
protected abstract void OnCommit()
Template method to revert any changes made by OnStage().
protected abstract void OnRollback()
Template method to stage changes.
protected abstract void OnStage()
Stages changes for later Commit() or rollback.
public void Stage()