Exemple #1
0
 private void LoadKnownWebLibraries(string filename, bool only_load_those_libraries_which_are_actually_present)
 {
     Logging.Info("+Loading known Web Libraries");
     try
     {
         if (File.Exists(filename))
         {
             KnownWebLibrariesFile known_web_libraries_file = SerializeFile.ProtoLoad <KnownWebLibrariesFile>(filename);
             if (null != known_web_libraries_file.web_library_details)
             {
                 //...
             }
         }
     }
     catch (Exception ex)
     {
         Logging.Error(ex, "There was a problem loading the known Web Libraries from config file {0}", filename);
     }
     Logging.Info("-Loading known Web Libraries");
 }
        public AITagManager(Library library)
        {
            this.library = new TypedWeakReference <Library>(library);

            current_ai_tags_record = new AITags();

            // Attempt to load the existing tags
            try
            {
                if (File.Exists(Filename_Store))
                {
                    Stopwatch clk = Stopwatch.StartNew();
                    Logging.Info("+Loading AutoTags");
                    current_ai_tags_record = SerializeFile.ProtoLoad <AITags>(Filename_Store);
                    Logging.Info("-Loading AutoTags (time spent: {0} ms)", clk.ElapsedMilliseconds);
                }
            }
            catch (Exception ex)
            {
                Logging.Warn(ex, "There was a problem loading existing AutoTags");
            }
        }