Ejemplo n.º 1
0
        public virtual StorePut Put(object item, double priority = 1)
        {
            var put = new StorePut(Environment, TriggerGet, new PriorityItem(priority, item));

            PutQueue.Enqueue(put);
            TriggerPut();
            return(put);
        }
Ejemplo n.º 2
0
        public virtual StorePut Put(object item)
        {
            var put = new StorePut(Environment, TriggerGet, item);

            PutQueue.Enqueue(put);
            TriggerPut();
            return(put);
        }
Ejemplo n.º 3
0
        public virtual ContainerPut Put(double amount)
        {
            if (amount > Capacity)
            {
                throw new ArgumentException("Cannot put more than capacity", "amount");
            }
            var put = new ContainerPut(Environment, TriggerGet, amount);

            PutQueue.Enqueue(put);
            TriggerPut();
            return(put);
        }