예제 #1
0
        public DataEntityStorageImpl()
        {
            this.entityDirPath = FilePathUtility.GetFullPath(entityDir);
            //this.entityDirPath = Path.Combine(Global.DriveLetter, entityDir);

            this.entityMetadataFilepath = Path.Combine(this.entityDirPath, filename);
        }
예제 #2
0
        private static void EnsurePreHostRunning()
        {
            Process[] p = Process.GetProcessesByName(Path.GetFileNameWithoutExtension(preHostPath));
            if (p.Length == 0)
            {
                Logger.LogInfo("Pre 32bit process was not found. Starting it...");
                ProcessStartInfo psi     = new ProcessStartInfo(FilePathUtility.GetFullPath(preHostPath));
                Process          dllHost = Process.Start(psi);

                Thread.Sleep(5000);  // give process time to start
            }
        }
예제 #3
0
 public UserMetadataStorageImpl()
 {
     this.path = FilePathUtility.GetFullPath(filename);
     //this.path = Path.Combine(Global.DriveLetter, filename);
 }
예제 #4
0
파일: Storage.cs 프로젝트: iqman/MACMSC
        public Storage()
        {
            this.entityDirPath = FilePathUtility.GetFullPath(entityDir);

            this.metadataFilepath = Path.Combine(this.entityDirPath, filename);
        }