public void Transition(ModificationPhase phase) {
    lock (synchronization) {
       currentPhase?.HandleExit();
       currentPhase = phase;
       currentPhase.HandleEnter();
    }
 }
Example #2
0
 public void Transition(ModificationPhase phase)
 {
     lock (synchronization) {
         currentPhase?.HandleExit();
         currentPhase = phase;
         currentPhase.HandleEnter();
     }
 }