skip to the main content area of this page
Patterns and Practices

 

Autofac Dependency Injection Integration with Castle DynamicProxy2 and NMock2


Autofac continues to impress me for dependency injection and inversion of control. I recently mentioned Autofac a couple of times on PnPGuidance:

At the time there were plans to create an Autofac Contrib Project, which would be a set of extensions to extend the functionality of Autofac and/or integrate it with 3rd party libraries.

As of today there are two integrations:

  • Autofac and Castle Project's DynamicProxy2 for AOP Method Interception
  • Autofac and NMock2 as an Auto-mocking Container

as well as support for an IStartable Interface.

You can learn more about Autofac Contrib here.


Tags: Autofac, DependencyInjection, IoC


Topics



 

Popular Tags



Recent Links