Exemple #1
0
        private static IDynamoDbConnectionSettings ParseConnectionString(string connectionString)
        {
            var connectionSettings = DynamoDbConnectionStringBuilder.Parse(connectionString);

            if (String.IsNullOrEmpty(connectionSettings.ServiceUrl))
            {
                throw Errors.ServiceUrlMissing();
            }

            if (String.IsNullOrEmpty(connectionSettings.AccessKey))
            {
                throw Errors.AccessKeyMissing();
            }

            if (String.IsNullOrEmpty(connectionSettings.SecretKey))
            {
                throw Errors.SecretKeyMissing();
            }

            return(connectionSettings);
        }