public TokenEndpointService(
     IOptions <AutomaticTokenManagementOptions> managementOptions,
     IOptionsSnapshot <OpenIdConnectOptions> oidcOptions,
     IAuthenticationSchemeProvider schemeProvider,
     IHttpClientFactory httpClientFactory)
 {
     _managementOptions = managementOptions.Value;
     _oidcOptions       = oidcOptions;
     _schemeProvider    = schemeProvider;
     _httpClientFactory = httpClientFactory;
 }
 public AutomaticTokenManagementCookieEvents(
     ITokenEndpointService service,
     IOptions <AutomaticTokenManagementOptions> options,
     ILogger <AutomaticTokenManagementCookieEvents> logger,
     ISystemClock clock)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     _service = service ?? throw new ArgumentNullException(nameof(service));
     _options = options.Value;
     _logger  = logger ?? throw new ArgumentNullException(nameof(logger));
     _clock   = clock ?? throw new ArgumentNullException(nameof(clock));
 }