PageRenderTime 18ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

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

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