Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 private static string GetSitesModuleRelationDataFile(string moduleName)
 {
     var modulePath = new ModulePath(moduleName);
     var relation = modulePath.GetModuleSharedFilePath("Sites.txt");
     return relation.PhysicalPath;
 }