From 42db5460fc961d9eed9c397fa4f20889335c3b72 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 21 May 2026 14:29:49 +0200 Subject: [PATCH] Mark callback-based variant as [Obsolete] Add an informational note to clarify the usage of the callback-based variant of `StaticBuildConfiguration`. Highlight that it is marked as `[Obsolete]` with the message: "Use a local service collection instead of the static provider." Emphasize that while the `StaticBuildConfiguration` variant is recommended within the static path, the static path itself remains a convenience API. Reference Chapter 6 for additional context. --- docs/ReC.Client.xwiki | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/ReC.Client.xwiki b/docs/ReC.Client.xwiki index 0f533d0..b213133 100644 --- a/docs/ReC.Client.xwiki +++ b/docs/ReC.Client.xwiki @@ -464,6 +464,10 @@ Validierung beim Aufruf: * `BuildStaticClient` wirft `ArgumentNullException`, wenn der `configure`-Callback `null` ist. * `BuildStaticClient` wirft `InvalidOperationException`, wenn weder `BaseAddress` noch `ConfigureClient` gesetzt sind, **oder** wenn beide gleichzeitig gesetzt sind. +{{info}} +Auch diese callback-basierte Variante ist mit `[Obsolete]` markiert — der Hinweistext lautet hier jedoch *"Use a local service collection instead of the static provider."* Damit wird klargestellt, dass innerhalb des statischen Pfades die `StaticBuildConfiguration`-Variante die empfohlene Form ist, der statische Pfad als Ganzes aber weiterhin bewusst als Komfort-API gekennzeichnet bleibt (siehe Einleitung von Kapitel 6). +{{/info}} + Variante mit `HttpClient`-Feinkonfiguration: {{code language="vb.net"}}