Пример #1
0
 protected void RegisterStandardArea(RouteCollection routes, ResourceSettings resourceSettings, string areaName, string clientResourcePrefix)
 {
     Assembly assembly = GetType().Assembly;
     resourceSettings.AssemblyPathPrefixes.Add(areaName, assembly);
     resourceSettings.ClientResourcePrefixes.Add(assembly, clientResourcePrefix);
     RegisterStandardRoutes(routes, assembly, areaName, clientResourcePrefix);
 }
Пример #2
0
 public override void Register(RouteCollection routes, ResourceSettings resourceSettings)
 {
     RegisterStandardArea(routes, resourceSettings, "ecommerceadmin", "Assets");
     routes.IgnoreRoute("ecommerceadmin/{*pathInfo}");
 }
Пример #3
0
 protected void RegisterStandardArea(RouteCollection routes, ResourceSettings resourceSettings, string areaName)
 {
     RegisterStandardArea(routes, resourceSettings, areaName, "Content");
 }
Пример #4
0
 public abstract void Register(RouteCollection routes, ResourceSettings resourceSettings);
Пример #5
0
 public EmbeddedResourceBuilder(IKernel kernel)
 {
     _kernel = kernel;
     _resourceSettings = new ResourceSettings();
 }
Пример #6
0
 public override void Register(RouteCollection routes, ResourceSettings resourceSettings)
 {
     RegisterStandardArea(routes, resourceSettings, "zeus", "Web.Resources");
 }
Пример #7
0
 public override void Register(RouteCollection routes, ResourceSettings resourceSettings)
 {
     AdminSection adminSection = (AdminSection) ConfigurationManager.GetSection("zeus/admin");
     RegisterStandardArea(routes, resourceSettings, adminSection.Path, "Assets");
 }