Interface IGithubRepositoryManager
Assembly: Volo.Docs.Domain.dll
Syntax
public interface IGithubRepositoryManager : ITransientDependency
Methods
GetFileCommitsAsync(String, String, String, String, String)
Declaration
Task<IReadOnlyList<GitHubCommit>> GetFileCommitsAsync(string name, string repositoryName, string version, string filename, string token)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
repositoryName |
|
System.String |
version |
|
System.String |
filename |
|
System.String |
token |
|
Returns
Type |
Description |
Task<IReadOnlyList<GitHubCommit>> |
|
GetFileRawByteArrayContentAsync(String, String, String)
Declaration
Task<byte[]> GetFileRawByteArrayContentAsync(string rawUrl, string token, string userAgent)
Parameters
Type |
Name |
Description |
System.String |
rawUrl |
|
System.String |
token |
|
System.String |
userAgent |
|
Returns
Type |
Description |
Task<System.Byte[]> |
|
GetFileRawStringContentAsync(String, String, String)
Declaration
Task<string> GetFileRawStringContentAsync(string rawUrl, string token, string userAgent)
Parameters
Type |
Name |
Description |
System.String |
rawUrl |
|
System.String |
token |
|
System.String |
userAgent |
|
Returns
Type |
Description |
Task<System.String> |
|
GetSingleCommitsAsync(String, String, String, String)
Declaration
Task<GitHubCommit> GetSingleCommitsAsync(string name, string repositoryName, string sha, string token)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
repositoryName |
|
System.String |
sha |
|
System.String |
token |
|
Returns
Type |
Description |
Task<GitHubCommit> |
|
GetVersionsAsync(String, String, String, GithubVersionProviderSource)
Declaration
Task<IReadOnlyList<GithubVersion>> GetVersionsAsync(string name, string repositoryName, string token, GithubVersionProviderSource githubVersionProviderSource)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
repositoryName |
|
System.String |
token |
|
GithubVersionProviderSource |
githubVersionProviderSource |
|
Returns
Extension Methods