Beispiel #1
0
        public QueueItem <T> Fetch()
        {
            var queueItem = _queueRepository.Fetch(QueueName, (long)_timeout.TotalSeconds);

            if (queueItem == null)
            {
                return(null);
            }
            var result = Serializer.BinaryDeSerialize <T>(queueItem.Payload);

            return(new QueueItem <T>(queueItem.Id, result));
        }