diff --git a/src/ReC.API/Program.cs b/src/ReC.API/Program.cs index cdaa4a3..187f35d 100644 --- a/src/ReC.API/Program.cs +++ b/src/ReC.API/Program.cs @@ -10,7 +10,7 @@ builder.Services.AddRecServices(options => options.LuckyPennySoftwareLicenseKey = builder.Configuration["LuckyPennySoftwareLicenseKey"]; }); -builder.Services.AddInfrastructureServices(options => +builder.Services.AddRecInfrastructure(options => { options.ConfigureDbContext((dbContextOpt) => { diff --git a/src/ReC.Infrastructure/DependencyInjection.cs b/src/ReC.Infrastructure/DependencyInjection.cs index fc51b58..e4d4404 100644 --- a/src/ReC.Infrastructure/DependencyInjection.cs +++ b/src/ReC.Infrastructure/DependencyInjection.cs @@ -7,7 +7,7 @@ namespace ReC.Infrastructure; public static class DependencyInjection { - public static IServiceCollection AddInfrastructureServices(this IServiceCollection services, Action options) + public static IServiceCollection AddRecInfrastructure(this IServiceCollection services, Action options) where TRecDbContext : RecDbContext { var configOpt = new ConfigurationOptions(); @@ -23,8 +23,8 @@ public static class DependencyInjection return services; } - public static IServiceCollection AddInfrastructureServices(this IServiceCollection services, Action options) - => services.AddInfrastructureServices(options); + public static IServiceCollection AddRecInfrastructure(this IServiceCollection services, Action options) + => services.AddRecInfrastructure(options); public class ConfigurationOptions {