Skip to main content

Posts

Showing posts with the label autofac

Integrate ASP.Net MVC + WebAPI with Autofac in 5 mins

Recently i configured Autofac with ASP.Net MVC 4 and WebAPI . Here are the steps required to configure Autofac Install package Autofac.MVC4 Install package Autofac.WebApi Add a class AutofacBootstrap. Use this class to configure the dependencies within your project. Open Global.asax file and add a method like  Call the method from Application_Start And you are done !!