Ejemplo n.º 1
0
        /// <inheritdoc />
        public IGitHubGraphQLClient CreateAppGraphQLClient(ITokenGenerator tokenGenerator)
        {
            var token = tokenGenerator.GetToken();

            return(GitHubClientFactoryHelper.GraphQLClient(token, GitHubClientFactory.UserAgent));
        }
Ejemplo n.º 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)));
        }
 /// <inheritdoc />
 public IGitHubGraphQLClient CreateGraphQLClient(string token)
 {
     return(GitHubClientFactoryHelper.GraphQLClient(token, UserAgent));
 }