示例#1
0
        public static void UpdateInternal()
        {
            float weight = 1;

            foreach (Category category in DbHelper.GetAllCategoriesFromDb())
            {
                List <CachedSection> newCachedSections = FetchSections.FetchInternCachedSections(weight, category);

                DbHelper.SaveCachedSections(newCachedSections);
            }
        }
示例#2
0
        public static void UpdateExternal()
        {
            float weight = 1;

            foreach (Category category in DbHelper.GetAllCategoriesFromDb())
            {
                var sectionsRequests = BuildSectionRequests(weight, category);

                List <CachedSection> newCachedSections = FetchSections.FetchExternCachedSections(sectionsRequests, mock: true);

                DbHelper.SaveCachedSections(newCachedSections);
            }
        }