From 10ac10ab6a845c91fe0a80150c2257aa70644ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20M=C3=A1rkus?= Date: Tue, 30 Jan 2024 09:42:04 +0100 Subject: [PATCH] Revert "Addressing IDE0290 and other warnings." This reverts commit ca84422f26328f04bf6ab309ae5913a6e828fac5. --- Apis/Context/AuthenticationContext.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Apis/Context/AuthenticationContext.cs b/Apis/Context/AuthenticationContext.cs index 63dff1f..b033925 100644 --- a/Apis/Context/AuthenticationContext.cs +++ b/Apis/Context/AuthenticationContext.cs @@ -56,11 +56,14 @@ protected override Task HandleRequirementAsync(AuthorizationHandlerContext conte } } -internal sealed class AlwaysLoggedInApiAuthenticationHandler( - IOptionsMonitor options, - ILoggerFactory logger, - UrlEncoder encoder) : AuthenticationHandler(options, logger, encoder) +internal sealed class AlwaysLoggedInApiAuthenticationHandler : AuthenticationHandler { + public AlwaysLoggedInApiAuthenticationHandler( + IOptionsMonitor options, + ILoggerFactory logger, + UrlEncoder encoder) + : base(options, logger, encoder) { } + protected override Task HandleAuthenticateAsync() => Task.FromResult( AuthenticateResult.Success(