From 1db1b35f3c06bf5a93722f82c377f98f2ef594e4 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Mon, 10 Mar 2025 09:27:20 +0100 Subject: [PATCH] =?UTF-8?q?refactor:=20Entfernen=20des=20redundanten=20Abr?= =?UTF-8?q?ufs=20des=20Konfigurationsabschnitts=20in=20`AddAuthHubClient`?= =?UTF-8?q?=20=20-=20Entfernt=20den=20unn=C3=B6tigen=20Aufruf=20von=20`Get?= =?UTF-8?q?Section(nameof(ClientParams))`=20beim=20Abrufen=20von=20`Client?= =?UTF-8?q?Params`=20aus=20der=20Konfiguration,=20was=20die=20Logik=20vere?= =?UTF-8?q?infacht=20und=20die=20Klarheit=20verbessert.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DigitalData.Auth.Client/DIExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DigitalData.Auth.Client/DIExtensions.cs b/DigitalData.Auth.Client/DIExtensions.cs index d9855f2..50b718a 100644 --- a/DigitalData.Auth.Client/DIExtensions.cs +++ b/DigitalData.Auth.Client/DIExtensions.cs @@ -11,7 +11,7 @@ public static class DIExtensions { public static IServiceCollection AddAuthHubClient(this IServiceCollection services, IConfiguration? configuration = null, Action? options = null) { - var clientParams = configuration?.GetSection(nameof(ClientParams)).Get() ?? new ClientParams(); + var clientParams = configuration?.Get() ?? new ClientParams(); options?.Invoke(clientParams); services .AddSingleton(Options.Create(clientParams))