コード例 #1
0
        public void RegisterQueueItemProgress(QueueEventType eventType, QueueItemDTO latestItem)
        {
            QueueEventLogDTO eventLogItem = new QueueEventLogDTO
            {
                Message           = string.Format("Queue Data Item {0} is {1}", latestItem.BadgeAwardId, eventType.ToString()),
                QueueEventCreated = DateTime.Now,
                QueueEventId      = (int)eventType,
                BadgeAwardId      = latestItem.BadgeAwardId
            };

            _queueEventLogDAL.Add(eventLogItem);
        }
コード例 #2
0
        private static QueueEventLogDTO AddQueueEventLogRecord(IQueueEventLogDAL queueEventLogDAL, IQueueItemDAL queueItemDAL)
        {
            //Grab the top item
            QueueItemDTO queueItemDTO = queueItemDAL.Peek();

            Assert.IsNotNull(queueItemDTO);

            QueueEventLogDTO queueEventLogItem = new QueueEventLogDTO
            {
                Message = "Test Message",
                QueueEventCreated = DateTime.Now,
                QueueEventId = 1,
                BadgeAwardId = queueItemDTO.QueueItemId
            };

            QueueEventLogDTO addedItem = queueEventLogDAL.Add(queueEventLogItem);
            return addedItem;
        }
コード例 #3
0
        private static QueueEventLogDTO AddQueueEventLogRecord(IQueueEventLogDAL queueEventLogDAL, IQueueItemDAL queueItemDAL)
        {
            //Grab the top item
            QueueItemDTO queueItemDTO = queueItemDAL.Peek();

            Assert.IsNotNull(queueItemDTO);

            QueueEventLogDTO queueEventLogItem = new QueueEventLogDTO
            {
                Message           = "Test Message",
                QueueEventCreated = DateTime.Now,
                QueueEventId      = 1,
                BadgeAwardId      = queueItemDTO.QueueItemId
            };

            QueueEventLogDTO addedItem = queueEventLogDAL.Add(queueEventLogItem);

            return(addedItem);
        }