public InMemoryCacheInstallationLookup( IGitHubAppTokenProvider tokens, IOptions <GitHubClientOptions> options, ILogger <InMemoryCacheInstallationLookup> log) { _tokens = tokens; _options = options; _log = log; }
public GitHubTokenProvider( IInstallationLookup installationLookup, IGitHubAppTokenProvider tokens, IOptions <GitHubClientOptions> gitHubClientOptions, ILogger <GitHubTokenProvider> logger) { _installationLookup = installationLookup; _tokens = tokens; _gitHubClientOptions = gitHubClientOptions; _logger = logger; _tokenCache = new ConcurrentDictionary <long, AccessToken>(); }