Browse Source

Setting ServiceLifetime.Scoped to OrderingContext so it is explicit instead of implicit (by default).

pull/49/merge
CESARDL 8 years ago
parent
commit
bf5af56d32
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/Services/Ordering/Ordering.API/Startup.cs

+ 4
- 1
src/Services/Ordering/Ordering.API/Startup.cs View File

@ -52,7 +52,10 @@
{
options.UseSqlServer(Configuration["ConnectionString"],
sqlop => sqlop.MigrationsAssembly(typeof(Startup).GetTypeInfo().Assembly.GetName().Name));
});
},
ServiceLifetime.Scoped
);
services.AddSwaggerGen();
services.ConfigureSwaggerGen(options =>


Loading…
Cancel
Save