コード例 #1
0
        /// <inheritdoc />
        public async Task <IGitHubClient> CreateAppClientForLoginAsync(ITokenGenerator tokenGenerator, string login)
        {
            var(installation, token) = await FindInstallationAndGetToken(tokenGenerator, login);

            return(GitHubClientFactoryHelper.GitHubClient(token, GetUserAgent(installation)));
        }
コード例 #2
0
 /// <inheritdoc />
 public IGitHubClient CreateClient(string token)
 {
     return(GitHubClientFactoryHelper.GitHubClient(token, UserAgent));
 }