/// <inheritdoc /> public IGitHubGraphQLClient CreateAppGraphQLClient(ITokenGenerator tokenGenerator) { var token = tokenGenerator.GetToken(); return(GitHubClientFactoryHelper.GraphQLClient(token, GitHubClientFactory.UserAgent)); }
/// <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)); }