public ResttpConfiguration(Assembly controllersAssembly)
 {
     HttpRoutes = new HttpRouteList();
     ControllersAssembly = controllersAssembly;
     Formatters = new MediaTypeFormatterCollection();
     //Formatters.Remove(Formatters.First(f=>f is FormUrlEncodedMediaTypeFormatter));
     ContentNegotiator = new ContentNegotiation.ContentNegotiator();
     ActionParameterBinder = new Resttp.ActionInvoker.ActionParameterBinder();
 }
Esempio n. 2
0
 public HttpRouteResolver(HttpRouteList routes)
 {
     _routes = routes;
 }