9

Closed

Composition Provider for Web API

description

In much the same vein as the MVC Composition Provider, it would be great to support dependency resolution for ASP.NET Web API controllers.
Closed Jul 18, 2012 at 9:42 PM by nblumhardt
Thanks for the suggestion. We've added a sample to the wiki showing how this can be done with a few lines of code:

http://mef.codeplex.com/wikipage?title=Standalone%20Web%20API%20dependency%20resolver%20using%20Microsoft.Composition&referringTitle=Documentation

The WebApiContrib project is working on a NuGet package with this functionality:

http://webapicontrib.github.com/

comments