Class GithubRepositoryManager
Inheritance
System.Object
GithubRepositoryManager
Implements
ITransientDependency
Assembly: Volo.Docs.Domain.dll
Syntax
public class GithubRepositoryManager : object, IGithubRepositoryManager, ITransientDependency
Constructors
GithubRepositoryManager(IHttpClientFactory, IGithubVersionProviderFactory)
Declaration
public GithubRepositoryManager(IHttpClientFactory clientFactory, IGithubVersionProviderFactory githubVersionProviderFactory)
Parameters
Fields
HttpClientName
Declaration
public const string HttpClientName = null
Field Value
Type |
Description |
System.String |
|
Methods
GetFileCommitsAsync(String, String, String, String, String)
Declaration
public 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
public 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
public 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
public 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
public 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
Implements
ITransientDependency
Extension Methods