public async Task <List <GitHubContributor> > GetContributorsAsync(string owner, string repo) { using IDisposable scope = _fileLogger.CreateScope("Retrieving contributors"); List <GitHubContributor> contributors = await GetValueFromCache(StringTemplate.Contributors(owner, repo), async() => GitHubContributor.FromContributorsList(await _githubClient.Repository.GetAllContributors(owner, repo).ConfigureAwait(false))); return(contributors); }
public async Task <List <GitHubContributor> > GetContributorsAsync(string owner, string repo) { List <GitHubContributor> contributors = await GetValueFromCache(StringTemplate.Contributors(owner, repo), async() => GitHubContributor.FromContributorsList(await _githubClient.Repository.GetAllContributors(owner, repo))); return(contributors); }