public CacheableTokenProvider(ITokenStorage tokenStorage, ITokenGenerator tokenGenerator, ITokenMetadataCacheStrategy tokenMetadataCacheStrategy)
 {
     _tokenMetadataCacheStrategy = tokenMetadataCacheStrategy;
     _cache = new InMemoryTokenStorage();
     _generator = tokenGenerator;
     _storage = tokenStorage;
 }
Exemplo n.º 2
0
 public CacheableTokenProvider(ITokenStorage tokenStorage, ITokenGenerator tokenGenerator, ITokenMetadataCacheStrategy tokenMetadataCacheStrategy)
 {
     _tokenMetadataCacheStrategy = tokenMetadataCacheStrategy;
     _cache     = new InMemoryTokenStorage();
     _generator = tokenGenerator;
     _storage   = tokenStorage;
 }