Ejemplo n.º 1
0
        private void ConfigureServices(IServiceCollection serviceCollection)
        {
            serviceCollection.AddTransient <IEnvironmentWrapper, EnvironmentWrapper>();
            serviceCollection.AddTransient <ILambdaService, LambdaService>();

            serviceCollection.AddTransient <IDynamoDbContextWrapper, DynamoDbContextWrapper>(
                x => DynamoDbConfig.CreateConfiguredDbContextWrapper());
        }
Ejemplo n.º 2
0
        private void ConfigureServices(IServiceCollection serviceCollection)
        {
            serviceCollection.AddTransient <IEnvironmentWrapper, EnvironmentWrapper>();
            serviceCollection.AddTransient <ILambdaService, LambdaService>();
            serviceCollection.AddTransient <IResponseWrapper, ResponseWrapper>();

            serviceCollection.AddTransient <IDynamoDbContextWrapper, DynamoDbContextWrapper>(
                x => DynamoDbConfig.CreateConfiguredDbContextWrapper());
            serviceCollection.AddTransient <IAmazonApiGatewayManagementApi, AmazonApiGatewayManagementApiClient>(
                x => ApiGatewayConfig.CreateConfiguredApiGatewayManagementApiClient());
            serviceCollection.AddTransient <IAmazonIotData, AmazonIotDataClient>(
                x => IotConfig.CreateAmazonIotDataClient());
        }