PageRenderTime 45ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Bifrost.WCF/Execution/WebApiRoute.cs

#
C# | 21 lines | 17 code | 2 blank | 2 comment | 0 complexity | 3b80262e6b9ca7d1d3512d6f91a55406 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. using System;
  2. using System.ServiceModel.Activation;
  3. using System.Web.Routing;
  4. namespace Bifrost.WCF.Execution
  5. {
  6. // Workaround for allowing mixing ASP.net MVC and ServiceRoutes
  7. // From : http://codebetter.com/glennblock/2011/08/05/integrating-mvc-routes-and-web-api-routes-2/
  8. public class WebApiRoute : ServiceRoute
  9. {
  10. public WebApiRoute(string routePrefix, ServiceHostFactoryBase serviceHostFactory, Type serviceType)
  11. : base(routePrefix, serviceHostFactory, serviceType)
  12. {
  13. }
  14. public override VirtualPathData GetVirtualPath(RequestContext requestContext, RouteValueDictionary values)
  15. {
  16. return null;
  17. }
  18. }
  19. }