public AmazonConnection(TypeOfMsg requestMsgType) { pollingMsg = requestMsgType; objClient = new AmazonSQSClient(AccessKeyId, SecretAccessKey); CreateQueueResponse queueResponse = new CreateQueueResponse(); //Request existing queues ListQueuesResult allQueues = requestListOfQueuesInSQS(); bool eventSparkzQueueListExists = false; foreach (string queueURL in allQueues.QueueUrl) { if (queueURL.Equals(QueueURLString)) { eventSparkzQueueListExists = true; } } if (!eventSparkzQueueListExists) { queueResponse = objClient.CreateQueue(new CreateQueueRequest() { QueueName = EventSparkzQueueName }); } }
public WindowAzureConnection(TypeOfMsg requestMsgType) { }