Exemple #1
0
        public virtual Event WhenChange()
        {
            var whenChange = new Event(Environment);

            WhenChangeQueue.Add(whenChange);
            return(whenChange);
        }
Exemple #2
0
 protected virtual void TriggerWhenChange()
 {
     if (WhenChangeQueue.Count == 0)
     {
         return;
     }
     foreach (var evt in WhenChangeQueue)
     {
         evt.Succeed();
     }
     WhenChangeQueue.Clear();
 }