Show / Hide Table of Contents

Class GithubRepositoryManager

Inheritance
System.Object
GithubRepositoryManager
Implements
IGithubRepositoryManager
ITransientDependency
Namespace: Volo.Docs.GitHub.Documents
Assembly: Volo.Docs.Domain.dll
Syntax
public class GithubRepositoryManager : object, IGithubRepositoryManager, ITransientDependency

Constructors

GithubRepositoryManager(IHttpClientFactory, IGithubVersionProviderFactory)

Declaration
public GithubRepositoryManager(IHttpClientFactory clientFactory, IGithubVersionProviderFactory githubVersionProviderFactory)
Parameters
Type Name Description
IHttpClientFactory clientFactory
IGithubVersionProviderFactory githubVersionProviderFactory

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
Type Description
Task<IReadOnlyList<GithubVersion>>

Implements

IGithubRepositoryManager
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft