We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1f4082 commit 87d41beCopy full SHA for 87d41be
1 file changed
src/Services/Ordering/Ordering.API/Startup.cs
@@ -45,7 +45,8 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
45
services.AddMvc(options =>
46
{
47
options.Filters.Add(typeof(HttpGlobalExceptionFilter));
48
- }).AddControllersAsServices(); //Controllers are also injected thru DI
+ }).AddControllersAsServices(); //Injecting Controllers themselves thru DI
49
+ //For further info see: http://docs.autofac.org/en/latest/integration/aspnetcore.html#controllers-as-services
50
51
services.AddEntityFrameworkSqlServer()
52
.AddDbContext<OrderingContext>(options =>
0 commit comments