Alex Rivera | Logout

How do I set the default namespaces in MapHttpRoute?

Asked 2012-02-22T21:37:11.780
33

With the standard MapRoute method a can pass a string collection representing the namespaces in which to search for my controller. This seems to have disappeared from MapHttpRoute. How does one define the default namespaces using the new API routing?

Edit
Report

2 Answers

13

That feature does not exist currently.

answered 2012-02-22T22:10:51.017
0

You don't need to set default namespaces with Web API, it will search for controllers in all namespaces in the referenced assemblies (public types with name ending by 'Controller' which implement IHttpController).

answered 2012-08-24T22:50:44.423

Your Answer