Ejemplo n.º 1
0
 public DynamoDbClientFactory(IOptions <DynamoDbConfig> config)
 {
     _config = config.Value;
 }
Ejemplo n.º 2
0
 private void ConfigureServices(IServiceCollection serviceCollection)
 {
     serviceCollection.AddTransient <IEnvironmentWrapper, EnvironmentWrapper>();
     serviceCollection.AddTransient <ILambdaService, LambdaService>();
     serviceCollection.AddTransient <IDynamoDBContext, DynamoDBContext>(x => DynamoDbConfig.CreateConfiguredDbContext());
 }