Ejemplo n.º 1
0
        public Task UpdateMessageAsync(string messageId, string popReceipt, TimeSpan visibilityTimeout)
        {
            Require.NotEmpty(messageId, "messageId");
            Require.NotEmpty(popReceipt, "popReceipt");

            var message = new CloudQueueMessage(messageId, popReceipt);

            return(CloudEntity.UpdateMessageAsync(
                       message,
                       visibilityTimeout,
                       MessageUpdateFields.Visibility));
        }
Ejemplo n.º 2
0
        public Task UpdateMessageAsync(string messageId, string popReceipt, byte[] content)
        {
            Require.NotEmpty(messageId, "messageId");
            Require.NotEmpty(popReceipt, "popReceipt");
            Require.NotNull(content, "content");

            var message = new CloudQueueMessage(messageId, popReceipt);

            message.SetMessageContent(content);

            return(CloudEntity.UpdateMessageAsync(
                       message,
                       TimeSpan.Zero,
                       MessageUpdateFields.Content | MessageUpdateFields.Visibility));
        }