GitHubScripts
Assembly: ServiceStack.Common.dll
View Source
Declaration
public class GitHubScripts : ScriptMethods
Inherited Properties
Context
View Source
Declaration
public ScriptContext Context { get; set; }
InvokerCache
View Source
Declaration
public ConcurrentDictionary<string, MethodInvoker> InvokerCache { get; }
Pages
View Source
Declaration
public ISharpPages Pages { get; set; }
Methods
gistVirtualFiles(String)
View Source
Declaration
public GistVirtualFiles gistVirtualFiles(string gistId)
Returns
ServiceStack.IO.GistVirtualFiles
Parameters
Type | Name |
---|---|
System.String | gistId |
gistVirtualFiles(String, String)
View Source
Declaration
public GistVirtualFiles gistVirtualFiles(string gistId, string accessToken)
Returns
ServiceStack.IO.GistVirtualFiles
Parameters
Type | Name |
---|---|
System.String | gistId |
System.String | accessToken |
githubGateway()
View Source
Declaration
public GitHubGateway githubGateway()
Returns
githubGateway(String)
View Source
Declaration
public GitHubGateway githubGateway(string accessToken)
Returns
Parameters
Type | Name |
---|---|
System.String | accessToken |
githubSourceZipUrl(GitHubGateway, String, String)
View Source
Declaration
public string githubSourceZipUrl(GitHubGateway gateway, string orgNames, string name)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.GitHubGateway | gateway |
System.String | orgNames |
System.String | name |
githubSourceRepos(GitHubGateway, String)
View Source
Declaration
public Task<object> githubSourceRepos(GitHubGateway gateway, string orgName)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
Type | Name |
---|---|
ServiceStack.GitHubGateway | gateway |
System.String | orgName |
githubUserAndOrgRepos(GitHubGateway, String)
View Source
Declaration
public Task<object> githubUserAndOrgRepos(GitHubGateway gateway, string githubOrgOrUser)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
Type | Name |
---|---|
ServiceStack.GitHubGateway | gateway |
System.String | githubOrgOrUser |
githubUserRepos(GitHubGateway, String)
View Source
Declaration
public List<GithubRepo> githubUserRepos(GitHubGateway gateway, string githubUser)
Returns
System.Collections.Generic.List<ServiceStack.GithubRepo>
Parameters
Type | Name |
---|---|
ServiceStack.GitHubGateway | gateway |
System.String | githubUser |
githubOrgRepos(GitHubGateway, String)
View Source
Declaration
public List<GithubRepo> githubOrgRepos(GitHubGateway gateway, string githubOrg)
Returns
System.Collections.Generic.List<ServiceStack.GithubRepo>
Parameters
Type | Name |
---|---|
ServiceStack.GitHubGateway | gateway |
System.String | githubOrg |
githubCreateGist(GitHubGateway, String, Dictionary<String, String>)
View Source
Declaration
public GithubGist githubCreateGist(GitHubGateway gateway, string description, Dictionary<string, string> files)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.GitHubGateway | gateway |
System.String | description |
System.Collections.Generic.Dictionary<System.String,System.String> | files |
githubCreatePrivateGist(GitHubGateway, String, Dictionary<String, String>)
View Source
Declaration
public GithubGist githubCreatePrivateGist(GitHubGateway gateway, string description, Dictionary<string, string> files)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.GitHubGateway | gateway |
System.String | description |
System.Collections.Generic.Dictionary<System.String,System.String> | files |
githubGist(GitHubGateway, String)
View Source
Declaration
public GithubGist githubGist(GitHubGateway gateway, string gistId)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.GitHubGateway | gateway |
System.String | gistId |
githubWriteGistFiles(GitHubGateway, String, Dictionary<String, String>)
View Source
Declaration
public IgnoreResult githubWriteGistFiles(GitHubGateway gateway, string gistId, Dictionary<string, string> gistFiles)
Returns
ServiceStack.Script.IgnoreResult
Parameters
Type | Name |
---|---|
ServiceStack.GitHubGateway | gateway |
System.String | gistId |
System.Collections.Generic.Dictionary<System.String,System.String> | gistFiles |
githubWriteGistFile(GitHubGateway, String, String, String)
View Source
Declaration
public IgnoreResult githubWriteGistFile(GitHubGateway gateway, string gistId, string filePath, string contents)
Returns
ServiceStack.Script.IgnoreResult
Parameters
Type | Name |
---|---|
ServiceStack.GitHubGateway | gateway |
System.String | gistId |
System.String | filePath |
System.String | contents |
githuDeleteGistFiles(GitHubGateway, String, String)
View Source
Declaration
public IgnoreResult githuDeleteGistFiles(GitHubGateway gateway, string gistId, string filePath)
Returns
ServiceStack.Script.IgnoreResult
Parameters
Type | Name |
---|---|
ServiceStack.GitHubGateway | gateway |
System.String | gistId |
System.String | filePath |
githuDeleteGistFiles(GitHubGateway, String, IEnumerable<String>)
View Source
Declaration
public IgnoreResult githuDeleteGistFiles(GitHubGateway gateway, string gistId, IEnumerable<string> filePaths)
Returns
ServiceStack.Script.IgnoreResult
Parameters
Type | Name |
---|---|
ServiceStack.GitHubGateway | gateway |
System.String | gistId |
System.Collections.Generic.IEnumerable<System.String> | filePaths |
Inherited Methods
GetInvoker(String, Int32, InvokerType)
View Source
Declaration
public MethodInvoker GetInvoker(string name, int argsCount, InvokerType type)
Returns
Parameters
Type | Name |
---|---|
System.String | name |
System.Int32 | argsCount |
ServiceStack.Script.InvokerType | type |
QueryFilters(String)
View Source
Declaration
public List<MethodInfo> QueryFilters(string filterName)
Returns
System.Collections.Generic.List<System.Reflection.MethodInfo>
Parameters
Type | Name |
---|---|
System.String | filterName |