예제 #1
0
        public async Task <ICollection <string> > Get(int?count = 100)
        {
            // Get the configured organization's repositories
            string organization = _configuration["Organization"];

            ICollection <Repository> respositories = await _github.GetRepositoriesAsync(organization, count);

            // Return the repositories' names
            var names = new List <string>();

            foreach (var repository in respositories)
            {
                names.Add(repository.Name);
            }

            names.Sort();

            return(names);
        }