Пример #1
0
        public void Delete(ObjectId id)
        {
            var collection = _database.GetCollection <QueueModel.Queue>("DeliveryQueue");

            var queue = queueQuery.Get(id);

            collection.Remove(Query <QueueModel.Queue> .EQ(q => q.Id, id));

            DeleteQueueIdFromPermission(queue.Name);
        }
Пример #2
0
        public void PushToQueues(IList <string> airingIds)
        {
            var queues = queueQueryHelper
                         .Get()
                         .Where(q => q.Active);

            foreach (var deliveryQueue in queues)
            {
                airingMessagePusherCommandHelper.PushBy(deliveryQueue.Name, deliveryQueue.Query, deliveryQueue.HoursOut, airingIds);
            }
        }
Пример #3
0
 public List <Model.Queue> GetQueues()
 {
     return
         (queueQueryHelper.Get().ToList <DLModel.Queue>()
          .ToBusinessModel <List <DLModel.Queue>, List <BLModel.Queue> >());
 }