Alex Meyer-Gleaves

OWIN support for the Web API 2 and MVC 5 integrations in Autofac

on autofac, mvc, Web API

Currently, in the both the Web API and MVC frameworks, dependency injection support does not come into play until after the OWIN pipeline has started executing. This is simply a result of the OWIN support being added to both frameworks after their initial release. In fact, the OWIN support in MVC does not yet extend…

FilterAttribute Property Injection in Autofac MVC 3 Integration

on autofac, mvc

The current mechanism for performing property injection on FilterAttribute instances via the ExtensibleActionInvoker had to be removed recently due to a rather nasty bug. These are the notes that Nick provided outlining the problem he discovered (possibly with the help of the exciting new Whitebox profiler). Because the filters passed from the base action invoker…

View Page Injection in Autofac ASP.NET MVC 3 Integration

on autofac, mvc

The increased support for dependency injection in ASP.NET MVC 3 includes the ability to have your view pages created by your favourite container. Historically, these classes have not had access to dependency injection/service location functionality, because their creation was buried deep inside the implementation of the view engine. In MVC 3, we have…

ASP.NET MVC 3 Beta integration for Autofac

on autofac, mvc

I have just checked into trunk a first pass at the ASP.NET MVC 3 Beta integration for Autofac. In hope of simplifying the requirements for those getting started with the integration I wanted to prevent the need to: Add a reference the Autofac.Integration.Web.dll assembly Implement the IContainerProviderAccessor interface on the HttpApplication…

Introducing Action Injection with Autofac ASP.NET MVC Integration

on autofac, mvc

There are currently two main approaches to performing dependency injection, Constructor Injection and Setter Injection. The more popular of the two approaches is Constructor Injection. The dependencies that a type has are made obvious because they must be supplied in order to construct an instance. This also makes it easier for you to ensure that…

ASP.NET MVC RTM

on mvc

It looks like ASP.NET MVC 1.0 has been released and is available for download. Microsoft have been very open with the development of MVC and have really taken community feedback on board. The end result of taking this transparent approach speaks for itself. Phil Haack from Microsoft has written about the release of…