コード例 #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");
 }