Ejemplo n.º 1
0
        public DataEntityStorageImpl()
        {
            this.entityDirPath = FilePathUtility.GetFullPath(entityDir);
            //this.entityDirPath = Path.Combine(Global.DriveLetter, entityDir);

            this.entityMetadataFilepath = Path.Combine(this.entityDirPath, filename);
        }
Ejemplo n.º 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
            }
        }
Ejemplo n.º 3
0
 public UserMetadataStorageImpl()
 {
     this.path = FilePathUtility.GetFullPath(filename);
     //this.path = Path.Combine(Global.DriveLetter, filename);
 }
Ejemplo n.º 4
0
        public Storage()
        {
            this.entityDirPath = FilePathUtility.GetFullPath(entityDir);

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