tgstation-server 6.17.0
The /tg/station 13 server suite
|
Public Member Functions | |||||||
GitHubServiceFactory (IGitHubClientFactory gitHubClientFactory, ILoggerFactory loggerFactory, IOptions< UpdatesConfiguration > updatesConfigurationOptions) | |||||||
Initializes a new instance of the GitHubServiceFactory class. | |||||||
async ValueTask< IGitHubService > | CreateService (CancellationToken cancellationToken) | ||||||
Create a IGitHubService.
| |||||||
async ValueTask< IAuthenticatedGitHubService > | CreateService (string accessToken, CancellationToken cancellationToken) | ||||||
Create an IAuthenticatedGitHubService.
| |||||||
async ValueTask< IAuthenticatedGitHubService?> | CreateService (string accessString, RepositoryIdentifier repositoryIdentifier, CancellationToken cancellationToken) | ||||||
Create an IAuthenticatedGitHubService.
| |||||||
Private Member Functions | |
GitHubService | CreateServiceImpl (IGitHubClient gitHubClient) |
Create a GitHubService. | |
Private Attributes | |
readonly IGitHubClientFactory | gitHubClientFactory |
The IGitHubClientFactory for the GitHubServiceFactory. | |
readonly ILoggerFactory | loggerFactory |
The ILoggerFactory for the GitHubServiceFactory. | |
readonly UpdatesConfiguration | updatesConfiguration |
The UpdatesConfiguration for the GitHubServiceFactory. | |
Definition at line 15 of file GitHubServiceFactory.cs.
Tgstation.Server.Host.Utils.GitHub.GitHubServiceFactory.GitHubServiceFactory | ( | IGitHubClientFactory | gitHubClientFactory, |
ILoggerFactory | loggerFactory, | ||
IOptions< UpdatesConfiguration > | updatesConfigurationOptions | ||
) |
Initializes a new instance of the GitHubServiceFactory class.
gitHubClientFactory | The value of gitHubClientFactory. |
loggerFactory | The value of loggerFactory. |
updatesConfigurationOptions | The IOptions<TOptions> containing value of updatesConfiguration. |
Definition at line 38 of file GitHubServiceFactory.cs.
References Tgstation.Server.Host.Utils.GitHub.GitHubServiceFactory.gitHubClientFactory, Tgstation.Server.Host.Utils.GitHub.GitHubServiceFactory.loggerFactory, and Tgstation.Server.Host.Utils.GitHub.GitHubServiceFactory.updatesConfiguration.
async ValueTask< IGitHubService > Tgstation.Server.Host.Utils.GitHub.GitHubServiceFactory.CreateService | ( | CancellationToken | cancellationToken | ) |
Create a IGitHubService.
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Host.Utils.GitHub.IGitHubServiceFactory.
async ValueTask< IAuthenticatedGitHubService?> Tgstation.Server.Host.Utils.GitHub.GitHubServiceFactory.CreateService | ( | string | accessString, |
RepositoryIdentifier | repositoryIdentifier, | ||
CancellationToken | cancellationToken | ||
) |
Create an IAuthenticatedGitHubService.
accessString | The access token to use for communication with GitHub. |
repositoryIdentifier | The RepositoryIdentifier for the repository the service will be talking with. |
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Host.Utils.GitHub.IGitHubServiceFactory.
Definition at line 61 of file GitHubServiceFactory.cs.
References Tgstation.Server.Host.Utils.GitHub.IGitHubClientFactory.CreateClientForRepository(), Tgstation.Server.Host.Utils.GitHub.GitHubServiceFactory.CreateServiceImpl(), and Tgstation.Server.Host.Utils.GitHub.GitHubServiceFactory.gitHubClientFactory.
async ValueTask< IAuthenticatedGitHubService > Tgstation.Server.Host.Utils.GitHub.GitHubServiceFactory.CreateService | ( | string | accessToken, |
CancellationToken | cancellationToken | ||
) |
Create an IAuthenticatedGitHubService.
accessToken | The access token to use for communication with GitHub. |
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Host.Utils.GitHub.IGitHubServiceFactory.
|
private |
Create a GitHubService.
gitHubClient | The IGitHubClient for the GitHubService. |
Referenced by Tgstation.Server.Host.Utils.GitHub.GitHubServiceFactory.CreateService().
|
private |
The IGitHubClientFactory for the GitHubServiceFactory.
Definition at line 20 of file GitHubServiceFactory.cs.
Referenced by Tgstation.Server.Host.Utils.GitHub.GitHubServiceFactory.CreateService(), and Tgstation.Server.Host.Utils.GitHub.GitHubServiceFactory.GitHubServiceFactory().
|
private |
The ILoggerFactory for the GitHubServiceFactory.
Definition at line 25 of file GitHubServiceFactory.cs.
Referenced by Tgstation.Server.Host.Utils.GitHub.GitHubServiceFactory.GitHubServiceFactory().
|
private |
The UpdatesConfiguration for the GitHubServiceFactory.
Definition at line 30 of file GitHubServiceFactory.cs.
Referenced by Tgstation.Server.Host.Utils.GitHub.GitHubServiceFactory.GitHubServiceFactory().