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); }
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); } }
public List <Model.Queue> GetQueues() { return (queueQueryHelper.Get().ToList <DLModel.Queue>() .ToBusinessModel <List <DLModel.Queue>, List <BLModel.Queue> >()); }