Skip to main content

IGitHubGateway

Assembly: ServiceStack.Common.dll
View Source
Declaration
public interface IGitHubGateway : IGistGateway

Methods

FindRepo(String[], String, Boolean)

View Source
Declaration
Tuple<string, string> FindRepo(string[] orgs, string name, bool useFork = false)
Returns

System.Tuple<System.String,System.String>

Parameters
TypeName
System.String[]orgs
System.Stringname
System.BooleanuseFork

GetSourceZipUrl(String, String)

View Source
Declaration
string GetSourceZipUrl(string user, string repo)
Returns

System.String

Parameters
TypeName
System.Stringuser
System.Stringrepo

GetSourceZipUrlAsync(String, String)

View Source
Declaration
Task<string> GetSourceZipUrlAsync(string user, string repo)
Returns

System.Threading.Tasks.Task<System.String>

Parameters
TypeName
System.Stringuser
System.Stringrepo

GetSourceReposAsync(String)

View Source
Declaration
Task<List<GithubRepo>> GetSourceReposAsync(string orgName)
Returns

System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.GithubRepo>>

Parameters
TypeName
System.StringorgName

GetUserAndOrgReposAsync(String)

View Source
Declaration
Task<List<GithubRepo>> GetUserAndOrgReposAsync(string githubOrgOrUser)
Returns

System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.GithubRepo>>

Parameters
TypeName
System.StringgithubOrgOrUser

GetRepo(String, String)

View Source
Declaration
GithubRepo GetRepo(string userOrOrg, string repo)
Returns

ServiceStack.GithubRepo

Parameters
TypeName
System.StringuserOrOrg
System.Stringrepo

GetRepoAsync(String, String)

View Source
Declaration
Task<GithubRepo> GetRepoAsync(string userOrOrg, string repo)
Returns

System.Threading.Tasks.Task<ServiceStack.GithubRepo>

Parameters
TypeName
System.StringuserOrOrg
System.Stringrepo

GetUserRepos(String)

View Source
Declaration
List<GithubRepo> GetUserRepos(string githubUser)
Returns

System.Collections.Generic.List<ServiceStack.GithubRepo>

Parameters
TypeName
System.StringgithubUser

GetUserReposAsync(String)

View Source
Declaration
Task<List<GithubRepo>> GetUserReposAsync(string githubUser)
Returns

System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.GithubRepo>>

Parameters
TypeName
System.StringgithubUser

GetOrgRepos(String)

View Source
Declaration
List<GithubRepo> GetOrgRepos(string githubOrg)
Returns

System.Collections.Generic.List<ServiceStack.GithubRepo>

Parameters
TypeName
System.StringgithubOrg

GetOrgReposAsync(String)

View Source
Declaration
Task<List<GithubRepo>> GetOrgReposAsync(string githubOrg)
Returns

System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.GithubRepo>>

Parameters
TypeName
System.StringgithubOrg

GetJson(String)

View Source
Declaration
string GetJson(string route)
Returns

System.String

Parameters
TypeName
System.Stringroute

GetJson<T>(String)

View Source
Declaration
T GetJson<T>(string route)
Returns

<T>

Parameters
TypeName
System.Stringroute
Type Parameters
  • T

GetJsonAsync(String)

View Source
Declaration
Task<string> GetJsonAsync(string route)
Returns

System.Threading.Tasks.Task<System.String>

Parameters
TypeName
System.Stringroute

GetJsonAsync<T>(String)

View Source
Declaration
Task<T> GetJsonAsync<T>(string route)
Returns

System.Threading.Tasks.Task<<T>>

Parameters
TypeName
System.Stringroute
Type Parameters
  • T

StreamJsonCollection<T>(String)

View Source
Declaration
IEnumerable<T> StreamJsonCollection<T>(string route)
Returns

System.Collections.Generic.IEnumerable<<T>>

Parameters
TypeName
System.Stringroute
Type Parameters
  • T

GetJsonCollectionAsync<T>(String)

View Source
Declaration
Task<List<T>> GetJsonCollectionAsync<T>(string route)
Returns

System.Threading.Tasks.Task<System.Collections.Generic.List<<T>>>

Parameters
TypeName
System.Stringroute
Type Parameters
  • T

DownloadFile(String, String)

View Source
Declaration
void DownloadFile(string downloadUrl, string fileName)
Parameters
TypeName
System.StringdownloadUrl
System.StringfileName