示例#1
0
 public void Run(string tableName)
 {
     if (_distributedCacheDynamoDbStartUpSettings != null && _distributedCacheDynamoDbStartUpSettings.CreateDbOnStartUp)
     {
         _dynamoDb.CreateDb(tableName, _distributedCacheDynamoDbStartUpSettings.ReadCapacityUnits, _distributedCacheDynamoDbStartUpSettings.WriteCapacityUnits);
     }
 }
示例#2
0
 /// <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);
     }
 }