/// <inheritdoc /> public async Task <IGitHubClient> CreateAppClientForLoginAsync(ITokenGenerator tokenGenerator, string login) { var(installation, token) = await FindInstallationAndGetToken(tokenGenerator, login); return(GitHubClientFactoryHelper.GitHubClient(token, GetUserAgent(installation))); }
/// <inheritdoc /> public IGitHubClient CreateClient(string token) { return(GitHubClientFactoryHelper.GitHubClient(token, UserAgent)); }