コード例 #1
0
        public static string EDTServiceRouteUrl(this UrlHelper url, EDTServiceRoute route)
        {
            HttpRequest request         = HttpContext.Current.Request;
            string      schemeHostCombo = request.Url.Scheme + "://" + request.Url.DnsSafeHost;

            return(schemeHostCombo + url.RouteUrl(route, null));
        }
コード例 #2
0
 public static string GetRouteName(EDTServiceRoute route)
 {
     return(typeof(EDTServiceRoute).Name + route.ToString());
 }
コード例 #3
0
 public static string RouteUrl(this UrlHelper url, EDTServiceRoute route, object routeValues)
 {
     return(url.RouteUrl(GetRouteName(route), routeValues));
 }
コード例 #4
0
 public static void MapRoute(this RouteCollection routes, EDTServiceRoute route, string url, object defaults)
 {
     routes.MapRoute(GetRouteName(route), url, defaults);
 }