Пример #1
0
 public OxiteRegisterRoutes(AppSettingsHelper appSettings, Site site, IAreaService areaService, IRouteModifier routeModifier)
 {
     this.appSettings   = appSettings;
     this.site          = site;
     this.areaService   = areaService;
     this.routeModifier = routeModifier;
 }
 public MIXVideosRegisterRoutes(IAreaService areaService, IPostViewService postViewService, IRouteModifier routeModifier)
 {
     this.areaService     = areaService;
     this.postViewService = postViewService;
     this.routeModifier   = routeModifier;
 }
 public static Route MapRoute(this RouteCollection routes, IRouteModifier routeModifier, string name, string url, object defaults, object constraints, string[] namespaces)
 {
     return(routes.MapRoute(name, routeModifier.ModifyUrl(url), defaults, constraints, namespaces));
 }
 public static void AddRoute(this IList <OxiteRoute> routes, IRouteModifier routeModifier, string name, string url, object defaults, object constraints, string[] namespaces)
 {
     routes.Add(new OxiteRoute(name, routeModifier.ModifyUrl(url), defaults, constraints, namespaces));
 }