Example #1
0
        public SqsQueue(AwsRegion region, string accountId, string queueName, IAwsCredential credential)
        {
            #region Preconditions

            if (accountId == null)
            {
                throw new ArgumentNullException(nameof(accountId));
            }

            if (queueName == null)
            {
                throw new ArgumentNullException(nameof(queueName));
            }

            if (credential == null)
            {
                throw new ArgumentNullException(nameof(credential));
            }

            #endregion

            this.url = new Uri($"https://sqs.{region}.amazonaws.com/{accountId}/{queueName}");

            this.client = new SqsClient(region, credential);
        }
Example #2
0
        public SqsQueue(AwsRegion region, string accountId, string queueName, IAwsCredential credential)
        {
            if (region is null)
            {
                throw new ArgumentNullException(nameof(region));
            }

            if (accountId is null)
            {
                throw new ArgumentNullException(nameof(accountId));
            }

            if (queueName is null)
            {
                throw new ArgumentNullException(nameof(queueName));
            }

            this.url = new Uri($"https://sqs.{region}.amazonaws.com/{accountId}/{queueName}");

            this.client = new SqsClient(region, credential);
        }