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