示例#1
0
 public async Task <ObservableCollection <RepositoryContent> > GetContentsOfRepository(long repoId,
                                                                                       GitHubClient authorizedGitHubClient, string path = null)
 {
     if (string.IsNullOrWhiteSpace(path))
     {
         return(new ObservableCollection <RepositoryContent>(await _repoRepository.GetContentsOfRepository(repoId,
                                                                                                           authorizedGitHubClient)));
     }
     return(new ObservableCollection <RepositoryContent>(await _repoRepository.GetContentsOfRepository(repoId,
                                                                                                       authorizedGitHubClient, path)));
 }