diff --git a/src/Services/Ordering/Ordering.API/Startup.cs b/src/Services/Ordering/Ordering.API/Startup.cs index 05a7defbb..62be0893f 100644 --- a/src/Services/Ordering/Ordering.API/Startup.cs +++ b/src/Services/Ordering/Ordering.API/Startup.cs @@ -52,7 +52,10 @@ { options.UseSqlServer(Configuration["ConnectionString"], sqlop => sqlop.MigrationsAssembly(typeof(Startup).GetTypeInfo().Assembly.GetName().Name)); - }); + }, + ServiceLifetime.Scoped + ); + services.AddSwaggerGen(); services.ConfigureSwaggerGen(options =>