Adding Dependency Injection (Autofac) to ASP.NET MVC Core 2 10. December 2017 BillKrat IOC, ASP.NET MVC (0) Where the built-in Inversion Of Control (IOC), aka Dependency Injection (DI), container of ASP.NET MVC will meet most needs, sometimes we’ll want to utilize more advanced features of alternate IOC containers. In the example below we are configuring for the use of Autofac (line 56), using a pat... [More]
Configuring multiple environments with ASP.NET MVC Core 2 10. December 2017 BillKrat ASP.NET MVC (0) Source code available: HEREWith ASP.NET MVC Core 2, much of the configuration work is already done for us; it is configured for appsettings.{Environment}.json right out of the box. Line 29 is all you’ll require for the Startup method.I added the following extension method (line 53 above) to si... [More]