public async Task <List <RepoLabel> > GetLabelsAsync(string owner, string repo) { using IDisposable scope = _fileLogger.CreateScope("Retrieving labels"); List <RepoLabel> labels = await GetValueFromCache(StringTemplate.Labels(owner, repo), async() => RepoLabel.FromLabelList(await _githubClient.Issue.Labels.GetAllForRepository(owner, repo).ConfigureAwait(false))); return(labels); }
public async Task <List <RepoLabel> > GetLabelsAsync(string owner, string repo) { List <RepoLabel> labels = await GetValueFromCache(StringTemplate.Labels(owner, repo), async() => RepoLabel.FromLabelList(await _githubClient.Issue.Labels.GetAllForRepository(owner, repo))); return(labels); }