Beispiel #1
0
        public static void SQSListDeadLetterSourceQueues()
        {
            #region SQSListDeadLetterSourceQueues
            var client = new AmazonSQSClient();

            var request = new ListDeadLetterSourceQueuesRequest
            {
                QueueUrl = "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyTestDeadLetterQueue"
            };

            var response = client.ListDeadLetterSourceQueues(request);

            if (response.QueueUrls.Count > 0)
            {
                Console.WriteLine("Dead letter source queues:");

                foreach (var url in response.QueueUrls)
                {
                    Console.WriteLine("  " + url);
                }
            }
            else
            {
                Console.WriteLine("No dead letter source queues.");
            }
            #endregion

            Console.ReadLine();
        }