示例#1
0
        public static AddinScanFolderInfo Read(FileDatabase filedb, string file)
        {
            AddinScanFolderInfo finfo = (AddinScanFolderInfo)filedb.ReadSharedObject(file, typeMap);

            if (finfo != null)
            {
                finfo.fileName = file;
            }
            return(finfo);
        }
示例#2
0
        public static AddinScanFolderInfo Read(FileDatabase filedb, string basePath, string folderPath)
        {
            string fileName;
            AddinScanFolderInfo finfo = (AddinScanFolderInfo)filedb.ReadSharedObject(basePath, GetDomain(folderPath), ".data", Path.GetFullPath(folderPath), typeMap, out fileName);

            if (finfo != null)
            {
                finfo.fileName = fileName;
            }
            return(finfo);
        }
示例#3
0
 public void Write(FileDatabase fileDatabase, string file)
 {
     fileDatabase.WriteObject(file, this, typeMap);
 }
示例#4
0
 public void Write(FileDatabase filedb, string basePath)
 {
     filedb.WriteSharedObject(basePath, GetDomain(folder), ".data", Path.GetFullPath(folder), fileName, typeMap, this);
 }
示例#5
0
 public static AddinHostIndex Read(FileDatabase fileDatabase, string file)
 {
     return((AddinHostIndex)fileDatabase.ReadObject(file, typeMap));
 }