public AuthenticationTicketProvider(ISpotifyTokenClient tokenClient, IClock clock)
        {
            this.tokenHttpClient = tokenClient;
            this.clock           = clock;

            this.semaphore = new SemaphoreSlim(1);
        }
Пример #2
0
 public AuthenticationTicketProvider(
     IAuthenticationManager authenticationManager,
     IClock clock,
     ISpotifyTokenClient tokenClient,
     ISemaphoreProvider semaphoreProvider)
 {
     this.authenticationManager = authenticationManager;
     this.clock             = clock;
     this.tokenClient       = tokenClient;
     this.semaphoreProvider = semaphoreProvider;
 }
Пример #3
0
 public AuthenticationTicketProvider(
     ISpotifyAuthorizationClient authorizationClient,
     ISpotifyUserClient userClient,
     ISpotifyTokenClient tokenClient,
     IAuthenticationTicketRepository authenticationTicketRepository,
     IClock clock,
     IOptionsProvider <SpotifyAuthorizationCodeFlowOptions> optionsProvider)
 {
     this.authorizationClient            = authorizationClient;
     this.userClient                     = userClient;
     this.tokenClient                    = tokenClient;
     this.authenticationTicketRepository = authenticationTicketRepository;
     this.clock           = clock;
     this.optionsProvider = optionsProvider;
     this.semaphore       = new SemaphoreSlim(1);
     this.locker          = new object();
 }