protected virtual void DoGet(FilterStoreGet get) {
   for (int i = 0; i < Items.Count; i++) {
     var item = Items[i];
     if (!get.Filter(item)) continue;
     Items.RemoveAt(i);
     get.Succeed(item);
     return;
   }
 }
Exemple #2
0
 protected virtual void DoGet(FilterStoreGet get)
 {
     for (int i = 0; i < Items.Count; i++)
     {
         var item = Items[i];
         if (!get.Filter(item))
         {
             continue;
         }
         Items.RemoveAt(i);
         get.Succeed(item);
         return;
     }
 }
Exemple #3
0
 protected virtual void DoGet(FilterStoreGet get)
 {
     for (int i = 0; i < Items.Count; i++)
     {
         var item = Items[i];
         if (!get.Filter(item.Item))
         {
             continue;
         }
         GetWaitingTime?.Add(Environment.ToDouble(Environment.Now - get.Time));
         LeadTime?.Add(Environment.ToDouble(Environment.Now - item.AdmissionDate));
         Items.RemoveAt(i);
         get.Succeed(item.Item);
         return;
     }
 }