Exemplo n.º 1
0
        static Cache()
        {
            var appSettingsRepo = new ApplicationSettingsRepo($"{Environment.CurrentDirectory}");

            ApplicationSettings = appSettingsRepo.Retrieve($"{ApplicationSettings.FileName}");

            FamilyCacheController = new VehicleFamilyCache(ApplicationSettings);
        }
Exemplo n.º 2
0
        public void Initialize()
        {
            Settings = new ApplicationSettings();
            Repo     = new ApplicationSettingsRepo(Settings.CurrentDirectory, new ErrorReport(false));

            var currentDirectory = Settings.CurrentDirectory;
            var fileName         = ApplicationSettings.FileName;

            PathHolder.XMLPath = $"{currentDirectory}/{fileName}.xml";
        }