public void Run(string tableName) { if (_distributedCacheDynamoDbStartUpSettings != null && _distributedCacheDynamoDbStartUpSettings.CreateDbOnStartUp) { _dynamoDb.CreateDb(tableName, _distributedCacheDynamoDbStartUpSettings.ReadCapacityUnits, _distributedCacheDynamoDbStartUpSettings.WriteCapacityUnits); } }
/// <summary> /// /// </summary> /// <param name="tableName"></param> public void Run(string tableName) { if (_distributedCacheDynamoDbSettings.StartUpSettings != null && _distributedCacheDynamoDbSettings.StartUpSettings.CreateDbOnStartUp) { _logger.LogDebug($"StartUpManager - Run - create cache table with name {tableName}"); _dynamoDb.CreateDb(tableName, _distributedCacheDynamoDbSettings.StartUpSettings.ReadCapacityUnits, _distributedCacheDynamoDbSettings.StartUpSettings.WriteCapacityUnits); } }