public BasicProgramService( ILogger <BasicProgramService> logger, IHackSystemAuthenticationStateHandler hackSystemAuthenticationStateHandler, HttpClient httpClient) : base(logger, hackSystemAuthenticationStateHandler, httpClient) { }
public AuthenticatedServiceBase( ILogger logger, IHackSystemAuthenticationStateHandler hackSystemAuthenticationStateHandler, HttpClient httpClient) { this.logger = logger; this.hackSystemAuthenticationStateHandler = hackSystemAuthenticationStateHandler; this.httpClient = httpClient; }
public AuthenticationService( ILogger <AuthenticationService> logger, HttpClient httpClient, IHackSystemAuthenticationStateHandler hackSystemAuthenticationStateHandler) { this.logger = logger; this.httpClient = httpClient; this.hackSystemAuthenticationStateHandler = hackSystemAuthenticationStateHandler; }
public HackSystemAuthenticationTokenRefresher( ILogger <HackSystemAuthenticationTokenRefresher> logger, IServiceScopeFactory serviceScopeFactory, IOptionsMonitor <HackSystemAuthenticationOptions> configure) { this.logger = logger; this.configuration = configure.CurrentValue; var scope = serviceScopeFactory.CreateScope(); this.hackSystemAuthenticationStateHandler = scope.ServiceProvider.GetService <IHackSystemAuthenticationStateHandler>(); this.httpClient = scope.ServiceProvider.GetService <HttpClient>(); this.period = this.configuration.TokenRefreshInMinutes * 1000 * 60; this.timer = new Timer(new TimerCallback(this.RefreshTokenCallBack), null, Timeout.Infinite, period); }