Exemple #1
0
        public virtual Event WhenNew()
        {
            var whenNew = new Event(Environment);

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