public ModuleItemPath(string moduleName, string entryName) { ModulePath modulePath = new ModulePath(moduleName); EntryName = entryName; PhysicalPath = Path.Combine(modulePath.PhysicalPath, EntryName); VirtualPath = UrlUtility.Combine(modulePath.VirtualPath, EntryName); }
public static ModuleInfo Get(string moduleName) { ModulePath modulePath = new ModulePath(moduleName); if (!Directory.Exists(modulePath.PhysicalPath)) { return null; } string moduleInfoPath = GetModuleInfoPath(moduleName); var moduleInfo = DataContractSerializationHelper.Deserialize<ModuleInfo>(moduleInfoPath); moduleInfo.ModuleName = moduleName; return moduleInfo; }
private static string GetSitesModuleRelationDataFile(string moduleName) { var modulePath = new ModulePath(moduleName); var relation = modulePath.GetModuleSharedFilePath("Sites.txt"); return relation.PhysicalPath; }