示例#1
0
 public UserTokenService(
     IMemoryCache memoryCache,
     ApplicationDbContext db,
     IConfiguration config,
     SpotifyTokenRefreshService refreshService,
     ILogger <UserTokenService> logger)
 {
     _memoryCache    = memoryCache;
     _db             = db;
     _config         = config;
     _refreshService = refreshService;
     _dbSignal       = new SemaphoreSlim(1, 1);
     _logger         = logger;
 }
示例#2
0
 public Task <RefreshAccessTokenResponse> Refresh(SpotifyTokenRefreshService refreshService)
 {
     return(refreshService.RefreshTokenAsync(this));
 }