コード例 #1
0
        /// <inheritdoc />
        public IGitHubGraphQLClient CreateAppGraphQLClient(ITokenGenerator tokenGenerator)
        {
            var token = tokenGenerator.GetToken();

            return(GitHubClientFactoryHelper.GraphQLClient(token, GitHubClientFactory.UserAgent));
        }
コード例 #2
0
        /// <inheritdoc />
        public async Task <IGitHubGraphQLClient> CreateAppGraphQLClientForLoginAsync(ITokenGenerator tokenGenerator, string login)
        {
            var(installation, token) = await FindInstallationAndGetToken(tokenGenerator, login);

            return(GitHubClientFactoryHelper.GraphQLClient(token, GetUserAgent(installation)));
        }
コード例 #3
0
 /// <inheritdoc />
 public IGitHubGraphQLClient CreateGraphQLClient(string token)
 {
     return(GitHubClientFactoryHelper.GraphQLClient(token, UserAgent));
 }