/// <summary> /// Registers the module. /// </summary> /// <param name="virtualPath">The virtual path.</param> /// <param name="module">The module.</param> protected void RegisterModule(String virtualPath, DextopModule module) { module.PhysicalPath = DextopUtil.MapPath(virtualPath); module.VirtualPath = virtualPath; module.Application = this; Modules.Add(module); }
/// <summary> /// Optimizes the modules. /// </summary> /// <param name="outputVirtualPath">The output virtual path.</param> protected void OptimizeModules(String outputVirtualPath) { var outputModule = new DextopResourceOptimizationModule() { PhysicalPath = DextopUtil.MapPath(outputVirtualPath), VirtualPath = outputVirtualPath }; var context = new DextopResourceOptimizationContext { OptimizationOutputModule = outputModule }; foreach (var m in Modules) { m.OptimizeResources(context); } }