How do I properly register AutoFac in a basic MVC5.1 website?
Here’s what I have – feedback welcome! Global.asax.cs: public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { // Register Inversion of Control dependencies IoCConfig.RegisterDependencies(); // Typical MVC setup // …. } } App_Start folder: public class IoCConfig { /// <summary> /// For more info see /// :https://code.google.com/p/autofac/wiki/MvcIntegration (mvc4 instructions) /// </summary> public static void … Read more