/// <summary> /// returns any message delived for given Queue and AiringId /// </summary> /// <param name="airingId">media id to check</param> /// <param name="queueName">queue name to check</param> public BLModel.HistoricalMessage GetMessageDeliveredForAiringId(string airingId, string queueName) { HistoricalMessage historicalMessage = queueMessages.GetBy(queueName, airingId).First(); return(historicalMessage.ToBusinessModel <HistoricalMessage, BLModel.HistoricalMessage>()); }
public void Record(HistoricalMessage record) { _history.Save(record); }
/// <summary> /// Adds the historical message for the queue delivery /// </summary> /// <param name="airingId">the airing id</param> /// <param name="mediaId">the media id</param> /// <param name="message">the message</param> /// <param name="remoteQueueName">the queue name</param> /// <param name="messagePriority">message priority</param> public void AddHistoricalMessage(string airingId, string mediaId, string message, string remoteQueueName, byte?messagePriority) { var historicalMessage = new HistoricalMessage(airingId, mediaId, message, remoteQueueName, messagePriority); historyRecorder.Record(historicalMessage); }