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;
 }