public Execute ( string>.IEnumerable |
||
parameters | string>.IEnumerable | |
Résultat | System.Xml.Linq.XElement |
public void GetInfo(out long messageCount, out long messageNotVisibleCount) { XElement responseElement = _service.Execute(new GetQueueAttributesBuilder(), _uri); messageCount = long.Parse(GetAttributeValue(responseElement, "ApproximateNumberOfMessages")); messageNotVisibleCount = long.Parse(GetAttributeValue(responseElement, "ApproximateNumberOfMessagesNotVisible")); }
private static IEnumerable<SqsQueue> ListQueues(SqsService service) { return service.Execute(new ListQueuesBuilder()).Descendants(Sqs + "QueueUrl").Select( url => new SqsQueue(new Uri(url.Value + "/"), service)); }
private static SqsQueue Create(SqsService service, string queueName) { return new SqsQueue(new Uri(service.Execute(new CreateQueueBuilder(queueName)).Descendants(Sqs + "QueueUrl").First().Value + "/"), service); }
private static SqsQueue Create(SqsService service, string queueName) { return(new SqsQueue(new Uri(service.Execute(new CreateQueueBuilder(queueName)).Descendants(Sqs + "QueueUrl").First().Value + "/"), service)); }
private static IEnumerable <SqsQueue> ListQueues(SqsService service) { return(service.Execute(new ListQueuesBuilder()).Descendants(Sqs + "QueueUrl").Select( url => new SqsQueue(new Uri(url.Value + "/"), service))); }