Ejemplo n.º 1
0
        /// <summary>most migrations go in here</summary>
        public static void RunPostConfigMigrations(Configuration config)
        {
            AudibleApiStorage.EnsureAccountsSettingsFileExists();
            PopulateMissingConfigValues(config);

            //
            // migrations go below here
            //

            Migrations.migrate_to_v6_5_2(config);
        }
Ejemplo n.º 2
0
        /// <summary>Run migrations before loading Configuration for the first time. Then load and return Configuration</summary>
        public static Configuration RunPreConfigMigrations()
        {
            // must occur before access to Configuration instance
            Migrations.migrate_to_v5_2_0__pre_config();

            //***********************************************//
            //                                               //
            //   do not use Configuration before this line   //
            //                                               //
            //***********************************************//
            return(Configuration.Instance);
        }