コード例 #1
0
        public GithubConnectionCache(IGithubAppTokenService tokenService)
        {
            _tokenService = tokenService;
            var options         = new MemoryCacheOptions();
            var optionsAccessor = Options.Create(options);

            _memoryCache = new MemoryCache(optionsAccessor);
        }
コード例 #2
0
 public GithubConnectionCache(IGithubAppTokenService tokenService, IMemoryCache memoryCache)
 {
     _tokenService = tokenService;
     _memoryCache  = memoryCache;
 }