This project is read-only.

ASP.Net WebAPI Module

Topics: Writing modules
Mar 1, 2012 at 10:28 PM

I was wondering if anyone had managed to write an orchard module using the new WebAPI in MVC4 beta?  I've got stuck on getting the routing to work, and I'm not sure how to get the Orchard IoC working.

On the routing, the documentation all uses the MapHttpRoute extension method on RouteCollection, which can't be done in an IRouteProvider, and the Route constructor requires an IRouteHandler which I've not found a suitable implementation for WebAPI controllers.

IoC I suspect would work similar to WCF, though I haven't investigated this in detail yet.

Anyone had any success doing this?

Mar 6, 2012 at 1:10 AM

First, we would need to make Orchard work with MVC 4, which it doesn't at the moment. Please file an issue with the suggestion.

Mar 14, 2012 at 6:19 PM

Thanks - I've posted as issue #18563