Exemple #1
0
        public async Task <MessageReceipt> UpdateMessageAsync(MessageReceipt message)
        {
            var receipt = await _queue.UpdateMessageAsync(message.Id, message.PopReceipt, message.Text);

            return(new MessageReceipt
            {
                Id = message.Id,
                Text = message.Text,
                PopReceipt = receipt.Value.PopReceipt,
                InsertionTime = message.InsertionTime,
                ExpirationTime = message.ExpirationTime
            });
        }
Exemple #2
0
        public async Task <bool> DeleteMessageAsync(MessageReceipt message)
        {
            await _queue.DeleteMessageAsync(message.Id, message.PopReceipt);

            return(true);
        }