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