Ejemplo n.º 1
0
        public async Task ChangeVisibilityTimeout(VQSqsQueueResponse receipt, TimeSpan visibilityTimeout)
        {
            var client = GetClient;

            var obj = new ChangeMessageVisibilityRequest
            {
                ReceiptHandle     = receipt.Receipt,
                QueueUrl          = await GetQueueUrl(client, receipt.QueueName),
                VisibilityTimeout = Convert.ToInt32(visibilityTimeout.TotalSeconds),
            };

            var response = await client.ChangeMessageVisibilityAsync(obj);
        }
Ejemplo n.º 2
0
 public async Task Confirm(VQSqsQueueResponse response)
 {
     await Confirm(response.Receipt, response.QueueName);
 }