public virtual Event WhenNew() { var whenNew = new Event(Environment); WhenNewQueue.Add(whenNew); return(whenNew); }
protected virtual void TriggerWhenNew() { if (WhenNewQueue.Count == 0) { return; } foreach (var evt in WhenNewQueue) { evt.Succeed(); } WhenNewQueue.Clear(); }