예제 #1
0
        public static void GetRepositories(RepositoriesUpdateDelegate del)
        {
            var wb = new WebClient();

            wb.DownloadStringCompleted += delegate(object sender, DownloadStringCompletedEventArgs args)
            {
                var result  = new List <string>();
                var matches = Regex.Matches(args.Result, "<repo>(.*)</repo>");
                foreach (Match match in matches)
                {
                    result.Add(match.Groups[1].ToString());
                }
                del(result);
            };

            wb.DownloadStringAsync(new Uri("https://raw.githubusercontent.com/LeagueSharp/LeagueSharpLoader/master/Updates/Repositories.txt"));
        }
예제 #2
0
        public static void GetRepositories(RepositoriesUpdateDelegate del)
        {
            var wb = new WebClient();

            wb.DownloadStringCompleted += delegate(object sender, DownloadStringCompletedEventArgs args)
            {
                var result = new List <string>();
                try
                {
                    var matches = Regex.Matches(args.Result, "<repo>(.*)</repo>");
                    foreach (Match match in matches)
                    {
                        result.Add(match.Groups[1].ToString());
                    }
                }
                catch (Exception) { }
                del(result);
            };

            wb.DownloadStringAsync(
                new Uri(
                    "https://loader.joduska.me/repositories.txt"));
        }
예제 #3
0
        public static void GetRepositories(RepositoriesUpdateDelegate del)
        {
            var wb = new WebClient();

            wb.DownloadStringCompleted += delegate(object sender, DownloadStringCompletedEventArgs args)
                {
                    var result = new List<string>();
                    try
                    {
                        var matches = Regex.Matches(args.Result, "<repo>(.*)</repo>");
                        foreach (Match match in matches)
                        {
                            result.Add(match.Groups[1].ToString());
                        }
                    }
                    catch (Exception)
                    {
                    }
                    del(result);
                };

            wb.DownloadStringAsync(new Uri("https://loader.joduska.me/repositories.txt"));
        }
예제 #4
0
        public static void GetRepositories(RepositoriesUpdateDelegate del)
        {
            var wb = new WebClient();

            wb.DownloadStringCompleted += delegate(object sender, DownloadStringCompletedEventArgs args)
            {
                var result = new List<string>();
                var matches = Regex.Matches(args.Result, "<repo>(.*)</repo>");
                foreach (Match match in matches)
                {
                    result.Add(match.Groups[1].ToString());
                }
                del(result);
            };

            wb.DownloadStringAsync(
                new Uri(
                    "https://raw.githubusercontent.com/LeagueSharp/LeagueSharpLoader/master/Updates/Repositories.txt"));
        }