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