Exemple #1
0
        private void Initialize()
        {
            if (ConfigurationManager.AppSettings != null)
            {
                CheckFileMapper();

                LegacyDirectoryPath = FileMapper.MapApplicationRelativePath(ConfigurationUtilities.GetSetting("Legacy.Directory", "Legacy"));

                PersonalizationDirectoryPath = FileMapper.MapApplicationRelativePath(DataDirectory + "/Personalization_Data");
            }
        }
Exemple #2
0
        private void Initialize()
        {
            if (Configuration.Config.IsInitialized && ConfigurationManager.AppSettings != null)
            {
                string physicalPath = StateAccess.State.PhysicalApplicationPath;

                DataDirectoryPath = physicalPath + Path.DirectorySeparatorChar +
                                    "App_Data";

                string exportDirectory = physicalPath + Path.DirectorySeparatorChar + ConfigurationUtilities.GetSetting("Export.Directory", "Export").Replace("/", @"\");

                string backupDirectory = physicalPath + Path.DirectorySeparatorChar + ConfigurationUtilities.GetSetting("Backup.Directory", "Backup").Replace("/", @"\");

                string legacyDirectory = physicalPath + Path.DirectorySeparatorChar + ConfigurationUtilities.GetSetting("Legacy.Directory", "Legacy").Replace("/", @"\");

                ExportDirectoryPath = exportDirectory;

                BackupDirectoryPath = backupDirectory;

                LegacyDirectoryPath = legacyDirectory;
            }
        }