protected virtual void DoGet(StoreGet get) { if (Items.Count > 0) { var item = Items.First(); Items.RemoveAt(0); get.Succeed(item); } }
protected virtual void DoGet(StoreGet get) { if (Items.Count > 0) { var item = Items.Dequeue(); get.Succeed(item); } }
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); } }