コード例 #1
0
        static AWSConfigsDynamoDB()
        {
            try
            {
#if BCL || AWSSDK_UNITY
                var root    = new RootConfig();
                var section = root.GetServiceSection(dynamoDBKey);
                if (section == null)
                {
                    return;
                }

                var rootSection = new DynamoDBSectionRoot(section);
                if (rootSection.DynamoDB != null)
                {
                    AWSConfigsDynamoDB.Configure(rootSection.DynamoDB);
                }
#endif
            }
            finally
            {
                // If no configuration exist at least
                // configure the context config to the default.
                if (Context == null)
                {
                    Context          = new DynamoDBContextConfig();
                    ConversionSchema = ConversionSchema.V1;;
                }
            }
        }
コード例 #2
0
        static AWSConfigsDynamoDB()
        {
            Context          = new DynamoDBContextConfig();
            ConversionSchema = ConversionSchema.V1;

#if BCL || AWSSDK_UNITY
            var root    = new RootConfig();
            var section = root.GetServiceSection(dynamoDBKey);
            if (section == null)
            {
                return;
            }

            var rootSection = new DynamoDBSectionRoot(section);
            if (rootSection.DynamoDB != null)
            {
                AWSConfigsDynamoDB.Configure(rootSection.DynamoDB);
            }
#endif
        }