public virtual StoreGet Get()
 {
     var get = new StoreGet(Environment, TriggerPut);
       GetQueue.Enqueue(get);
       TriggerGet();
       return get;
 }
Exemple #2
0
 protected virtual void DoGet(StoreGet get) {
   if (Items.Count > 0) {
     var item = Items.First();
     Items.RemoveAt(0);
     get.Succeed(item);
   }
 }
Exemple #3
0
        public virtual StoreGet Get()
        {
            var get = new StoreGet(Environment, TriggerPut);

            GetQueue.Enqueue(get);
            TriggerGet();
            return(get);
        }
Exemple #4
0
 protected virtual void DoGet(StoreGet get)
 {
     if (Items.Count > 0)
     {
         var item = Items.Dequeue();
         get.Succeed(item);
     }
 }
Exemple #5
0
 protected virtual void DoGet(StoreGet get)
 {
     if (Items.Count > 0)
     {
         var item = Items.First();
         Items.RemoveAt(0);
         get.Succeed(item);
     }
 }
Exemple #6
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);
     }
 }