예제 #1
0
        /// <summary>
        /// Actually fetch and process web packages.
        /// </summary>
        private static bool TryFetchMefinoGithubPackages()
        {
            var githubQuery = GithubHelper.QueryForMefinoPackages();

            if (githubQuery == null)
            {
                Console.WriteLine("GITHUB QUERY RETURNED NULL! (are you offline?)");
                return(false);
            }

            var items = ((JsonValue)githubQuery).AsJsonObject["items"].AsJsonArray;

            foreach (var result in items)
            {
                CheckRepoSearchResult(result);
            }

            //Console.WriteLine($"Found {WebManifestManager.s_cachedWebManifests.Count} Mefino packages!");
            return(true);
        }