Register and test per-request services with Autofac

When we develop web application, like ASP.NET applications, we often need to implement a service with some informations related to the user request, such as session/account infos. In this case, the service will be tied to the web request lifecycle and there will be an instance of the service for each request. Autofac help us to … Continue reading Register and test per-request services with Autofac

Registering of the ASP.NET MVC Controllers with Autofac

One of the capabilities of Autofac is the integration with the ASP.NET applications. ASP.NET MVC is a framework thinked to supports the dependency injection, and so we can use Autofac to register the modules that compose the application, such as the controllers. Therefore, let's start by implementing the controllers of the application, then we 'll … Continue reading Registering of the ASP.NET MVC Controllers with Autofac