Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

MVC ServiceRoute variant That doesn't mess w/ Url.Action

By: a guest on Jun 27th, 2011  |  syntax: C#  |  size: 0.45 KB  |  views: 485  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         class AppServiceRoute : ServiceRoute
  2.         {
  3.             public AppServiceRoute(string routePrefix, ServiceHostFactoryBase serviceHostFactory, Type serviceType)
  4.                 : base(routePrefix, serviceHostFactory, serviceType)
  5.             {
  6.             }
  7.  
  8.             public override VirtualPathData GetVirtualPath(RequestContext requestContext, RouteValueDictionary values)
  9.             {
  10.                 return null;
  11.             }
  12.         }