コード例 #1
0
 public InMemoryCacheInstallationLookup(
     IGitHubAppTokenProvider tokens,
     IOptions <GitHubClientOptions> options,
     ILogger <InMemoryCacheInstallationLookup> log)
 {
     _tokens  = tokens;
     _options = options;
     _log     = log;
 }
コード例 #2
0
 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>();
 }