Exemple #1
0
 public static OldDeleteState GetInstance()
 {
     if (_instance == null)
     {
         lock (SyncRoot)
         {
             if (_instance == null)
             {
                 _instance = new OldDeleteState();
             }
         }
     }
     return(_instance);
 }
Exemple #2
0
 public override void Delete(APersistenceObject obj)
 {
     obj.PreviousState = this;
     obj.State         = OldDeleteState.GetInstance();
 }
Exemple #3
0
 internal void MarkDelete()
 {
     _previousState = _state;
     _state         = OldDeleteState.GetInstance();
 }