コード例 #1
0
        public DynamoDBContext(BasicAWSCredentials credentials, RegionEndpoint regionEndpoint, AWSDynamoTableConfig tableConfig, List <AWSDocumentConverter> startupData = null)
        {
            this.BasicAWSCredentials = credentials;
            this.RegionEndpoint      = regionEndpoint;
            this.client = new AmazonDynamoDBClient(credentials, new AmazonDynamoDBConfig()
            {
                RegionEndpoint = regionEndpoint
            });
            this.AWSDynamoTableConfig = tableConfig;
            this.StartupData          = startupData;
            this.AWSDocumentConverter = new AWSDocumentConverter();

            initiateTable();
        }
コード例 #2
0
        public async static Task <DynamoDBContext> GetDynamoDBContextAsync(BasicAWSCredentials credentials, RegionEndpoint regionEndpoint, AWSDynamoTableConfig tableConfig)
        {
            DynamoDBContext ddbc = new DynamoDBContext(credentials, regionEndpoint, tableConfig);
            await ddbc.CreateTableAsync();

            return(ddbc);
        }
コード例 #3
0
        public DynamoDBContext(RegionEndpoint regionEndpoint, string accessKey, string secretKey, AWSDynamoTableConfig tableConfig, List <AWSDocumentConverter> startupData = null)
        {
            this.BasicAWSCredentials = new BasicAWSCredentials(accessKey, secretKey);
            this.RegionEndpoint      = regionEndpoint;
            this.client = new AmazonDynamoDBClient(new BasicAWSCredentials(accessKey, secretKey), new AmazonDynamoDBConfig()
            {
                RegionEndpoint = regionEndpoint
            });
            this.AWSDynamoTableConfig = tableConfig;
            this.StartupData          = startupData;
            this.AWSDocumentConverter = new AWSDocumentConverter();

            initiateTable();
        }
コード例 #4
0
        public async static Task <DynamoDBContext> GetDynamoDBContextAsync(RegionEndpoint regionEndpoint, string accessKey, string secretKey, AWSDynamoTableConfig tableConfig)
        {
            DynamoDBContext ddbc = new DynamoDBContext(regionEndpoint, accessKey, secretKey, tableConfig);
            await ddbc.CreateTableAsync();

            return(ddbc);
        }
コード例 #5
0
        public static DynamoDBContext GetDynamoDBContext(BasicAWSCredentials credentials, RegionEndpoint regionEndpoint, AWSDynamoTableConfig tableConfig)
        {
            DynamoDBContext ddbc = new DynamoDBContext(credentials, regionEndpoint, tableConfig);

            ddbc.CreateTable();
            return(ddbc);
        }
コード例 #6
0
        public static DynamoDBContext GetDynamoDBContext(RegionEndpoint regionEndpoint, string accessKey, string secretKey, AWSDynamoTableConfig tableConfig)
        {
            DynamoDBContext ddbc = new DynamoDBContext(regionEndpoint, accessKey, secretKey, tableConfig);

            ddbc.CreateTable();
            return(ddbc);
        }
コード例 #7
0
 private DynamoDBContext(BasicAWSCredentials credentials, RegionEndpoint regionEndpoint, AWSDynamoTableConfig tableConfig)
 {
     this.BasicAWSCredentials = credentials;
     this.RegionEndpoint      = regionEndpoint;
     this.client = new AmazonDynamoDBClient(credentials, new AmazonDynamoDBConfig()
     {
         RegionEndpoint = regionEndpoint
     });
     this.AWSDynamoTableConfig = tableConfig;
     this.AWSDocumentConverter = new AWSDocumentConverter();
 }
コード例 #8
0
 private DynamoDBContext(RegionEndpoint regionEndpoint, string accessKey, string secretKey, AWSDynamoTableConfig tableConfig)
 {
     this.BasicAWSCredentials = new BasicAWSCredentials(accessKey, secretKey);
     this.RegionEndpoint      = regionEndpoint;
     this.client = new AmazonDynamoDBClient(new BasicAWSCredentials(accessKey, secretKey), new AmazonDynamoDBConfig()
     {
         RegionEndpoint = regionEndpoint
     });
     this.AWSDynamoTableConfig = tableConfig;
     this.AWSDocumentConverter = new AWSDocumentConverter();
 }