Пример #1
0
 public virtual StorePut Put(object item)
 {
     var put = new StorePut(Environment, TriggerGet, item);
       PutQueue.Enqueue(put);
       TriggerPut();
       return put;
 }
Пример #2
0
 protected virtual void DoPut(StorePut put)
 {
     if (Items.Count < Capacity) {
     Items.Add(put.Value);
     put.Succeed();
       }
 }