コード例 #1
0
        public async Task ProcessMessageAsync(QueueMessageToken <T> msg)
        {
            var token = msg.Token as CloudQueueMessage;

            if (token == null)
            {
                return;
            }

            await _queue.DeleteMessageAsync(token);
        }
コード例 #2
0
        public async Task <QueueMessageToken <T> > GetMessageAndHideAsync()
        {
            var msg = await _queue.GetMessageAsync();

            if (msg == null)
            {
                return(null);
            }

            return(QueueMessageToken <T> .Create(
                       JsonConvert.DeserializeObject <T>(msg.AsString),
                       msg
                       ));
        }
コード例 #3
0
 public Task ProcessMessageAsync(QueueMessageToken <T> token)
 {
     throw new NotImplementedException();
 }