public void Add(Guid id, InteractionType type, InteractionState state = InteractionState.Regular)
 {
     lock (_queueLocker)
     {
         _queue.Add(InteractionItem.GetItem(id, type, state));
     }
 }
 public void Remove(Guid id)
 {
     lock (_queueLocker)
     {
         var item = _queue.FirstOrDefault(i => i.Id == id);
         _queue.Remove(InteractionItem.PutItem(item));
     }
 }
Beispiel #3
0
 public static InteractionItem PutItem(InteractionItem item)
 {
     lock (_itemsPoolLocker)
     {
         _itemsPool.Push(item);
         return(item);
     }
 }