private async Task StartLoadData() { Status = Status.CreatingTable; var config = _geoDataManager.GeoDataManagerConfiguration; var ctr = GeoTableUtil.GetCreateTableRequest(config); await config.DynamoDBClient.CreateTableAsync(ctr); await WaitForTableToBeReady(); await InsertData(); }
private async Task CreateTable() { var config = new GeoDataManagerConfiguration(new AmazonDynamoDBClient(), _tableName); try { var ctr = GeoTableUtil.GetCreateTableRequest(config); var ddb = new AmazonDynamoDBClient(); _config = new GeoDataManagerConfiguration(ddb, _tableName); _geoDataManager = new GeoDataManager(_config); await config.DynamoDBClient.CreateTableAsync(ctr); await InsertData(); } catch (Exception) { throw; } }