Skip to content

Commit f7bc8e0

Browse files
committed
clarification
1 parent 3f17ff4 commit f7bc8e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ordering/Ordering.API/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void ConfigureServices(IServiceCollection services)
4444

4545
// use real database
4646
services.AddDbContext<OrderContext>(c =>
47-
c.UseSqlServer(Configuration.GetConnectionString("OrderConnection")), ServiceLifetime.Singleton);
47+
c.UseSqlServer(Configuration.GetConnectionString("OrderConnection")), ServiceLifetime.Singleton); // we made singleton this in order to resolve in mediatR when consuming Rabbit
4848

4949
#endregion
5050

0 commit comments

Comments
 (0)