Exemple #1
0
 protected virtual void DoGet(StoreGet get) {
   if (Items.Count > 0) {
     var item = Items.First();
     Items.RemoveAt(0);
     get.Succeed(item);
   }
 }
Exemple #2
0
 protected virtual void DoGet(StoreGet get)
 {
     if (Items.Count > 0)
     {
         var item = Items.Dequeue();
         get.Succeed(item);
     }
 }
Exemple #3
0
 protected virtual void DoGet(StoreGet get)
 {
     if (Items.Count > 0)
     {
         var item = Items.First();
         Items.RemoveAt(0);
         get.Succeed(item);
     }
 }
Exemple #4
0
 protected virtual void DoGet(StoreGet get)
 {
     if (Items.Count > 0)
     {
         var item = Items.Dequeue();
         GetWaitingTime?.Add(Environment.ToDouble(Environment.Now - get.Time));
         LeadTime?.Add(Environment.ToDouble(Environment.Now - item.AdmissionDate));
         get.Succeed(item.Item);
     }
 }