diff --git a/src/CSharp/EasyMicroservices.Cores.AspEntityFrameworkCoreApi/StartUpExtensions.cs b/src/CSharp/EasyMicroservices.Cores.AspEntityFrameworkCoreApi/StartUpExtensions.cs index 1bce7ad..a568b69 100644 --- a/src/CSharp/EasyMicroservices.Cores.AspEntityFrameworkCoreApi/StartUpExtensions.cs +++ b/src/CSharp/EasyMicroservices.Cores.AspEntityFrameworkCoreApi/StartUpExtensions.cs @@ -87,8 +87,8 @@ public static IServiceCollection Builder(this IServiceCollection servi option.ExceptionHandler = AppAuthorizationMiddleware.ExceptionHandler; }); services.AddScoped(service => new Contents.GeneratedServices.ContentClient(GetContentAddress(service)?.Address, new HttpClient())); - services.AddSingleton(); - services.AddSingleton(); + services.AddScoped(); + services.AddScoped(); return services; }