public static OldCleanState GetInstance() { if (_instance == null) { lock (SyncRoot) { if (_instance == null) { _instance = new OldCleanState(); } } } return(_instance); }
public override void Commit(APersistenceObject persistenceObject) { PersistenceFacade.GetInstance().Insert(persistenceObject); persistenceObject.PreviousState = this; persistenceObject.State = OldCleanState.GetInstance(); }
internal void MarkOldClean() { _previousState = _state; _state = OldCleanState.GetInstance(); }