tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IGitHubServiceFactory.cs
Go to the documentation of this file.
1using System.Threading;
2using System.Threading.Tasks;
3
5{
9 public interface IGitHubServiceFactory
10 {
16 public ValueTask<IGitHubService> CreateService(CancellationToken cancellationToken);
17
24 public ValueTask<IAuthenticatedGitHubService> CreateService(string accessToken, CancellationToken cancellationToken);
25
33 public ValueTask<IAuthenticatedGitHubService?> CreateService(string accessString, RepositoryIdentifier repositoryIdentifier, CancellationToken cancellationToken);
34 }
35}
Identifies a repository either by its RepositoryId or Owner and Name.
ValueTask< IAuthenticatedGitHubService?> CreateService(string accessString, RepositoryIdentifier repositoryIdentifier, CancellationToken cancellationToken)
Create an IAuthenticatedGitHubService.
ValueTask< IGitHubService > CreateService(CancellationToken cancellationToken)
Create a IGitHubService.
ValueTask< IAuthenticatedGitHubService > CreateService(string accessToken, CancellationToken cancellationToken)
Create an IAuthenticatedGitHubService.