protected virtual void TriggerWhenFull() { if (Count == Capacity) { if (WhenFullQueue.Count == 0) { return; } foreach (var evt in WhenFullQueue) { evt.Succeed(); } WhenFullQueue.Clear(); } }
protected virtual void TriggerWhenFull() { if (Location.Height == Location.MaxHeight) { if (WhenFullQueue.Count == 0) { return; } foreach (var evt in WhenFullQueue) { evt.Succeed(); } WhenFullQueue.Clear(); } }