private void AcceptSequence()
 {
     lock (syncRoot) {
         if (sequenceGenerator != null)
         {
             try {
                 sequenceGenerator.Accept();
             } finally {
                 CancelSequence();
             }
         }
     }
 }