SearchRepositories() public static method

Creates the relative Uri for searching repositories
public static SearchRepositories ( ) : Uri
return Uri
Ejemplo n.º 1
0
 /// <summary>
 /// search repos
 /// http://developer.github.com/v3/search/#search-repositories
 /// </summary>
 /// <param name="search"></param>
 /// <returns>List of repos</returns>
 public Task <IReadOnlyList <Repository> > SearchRepo(SearchRepositoriesRequest search)
 {
     Ensure.ArgumentNotNull(search, "search");
     return(ApiConnection.GetAll <Repository>(ApiUrls.SearchRepositories(), search.Parameters));
 }
Ejemplo n.º 2
0
 public Task <SearchRepositoryResult> SearchRepo(SearchRepositoriesRequest search)
 {
     Ensure.ArgumentNotNull(search, nameof(search));
     return(ApiConnection.Get <SearchRepositoryResult>(ApiUrls.SearchRepositories(), search.Parameters));
 }