public BearerTokenConnectionProvider(
     IOptions <SpaceTokenManagementOptions> options,
     IOptionsSnapshot <SpaceOptions> spaceOptions,
     IAuthenticationSchemeProvider schemeProvider,
     IHttpContextAccessor httpContextAccessor,
     IHttpClientFactory httpClientFactory,
     ILogger <BearerTokenConnectionProvider> logger)
 {
     _options             = options.Value;
     _spaceOptions        = spaceOptions;
     _schemeProvider      = schemeProvider;
     _httpContextAccessor = httpContextAccessor;
     _httpClientFactory   = httpClientFactory;
     _logger = logger;
 }
 /// <summary>
 /// Creates a new <see cref="SpaceTokenManagementCookieEvents"/> instance.
 /// </summary>
 /// <param name="options">The <see cref="SpaceTokenManagementOptions"/> used by the current <see cref="SpaceTokenManagementCookieEvents"/>.</param>
 /// <param name="spaceOptions">The <see cref="SpaceOptions"/> used by the current <see cref="SpaceTokenManagementCookieEvents"/>.</param>
 /// <param name="schemeProvider">An <see cref="IAuthenticationSchemeProvider"/> used by the current <see cref="SpaceTokenManagementCookieEvents"/>.</param>
 /// <param name="httpClientFactory">An <see cref="IHttpClientFactory"/> used by the current <see cref="SpaceTokenManagementCookieEvents"/>.</param>
 /// <param name="logger">An <see cref="ILogger{T}"/> used by the current <see cref="SpaceTokenManagementCookieEvents"/>.</param>
 /// <param name="clock">An <see cref="ISystemClock"/> used by the current <see cref="SpaceTokenManagementCookieEvents"/>.</param>
 public SpaceTokenManagementCookieEvents(
     IOptions <SpaceTokenManagementOptions> options,
     IOptionsSnapshot <SpaceOptions> spaceOptions,
     IAuthenticationSchemeProvider schemeProvider,
     IHttpClientFactory httpClientFactory,
     ILogger <SpaceTokenManagementCookieEvents> logger,
     ISystemClock clock)
 {
     _options           = options.Value;
     _spaceOptions      = spaceOptions;
     _schemeProvider    = schemeProvider;
     _httpClientFactory = httpClientFactory;
     _logger            = logger;
     _clock             = clock;
 }