From 4a7f2a41fa91494ffdbff3dea50dca050462596b Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Sat, 6 Dec 2025 00:02:30 +0100 Subject: [PATCH] Mark static provider methods as obsolete The `BuildStaticClient` and `Create` methods in the `ReC.Client` namespace have been marked with the `[Obsolete]` attribute. These methods now include a message advising developers to use a local service collection instead of the static provider. This change serves as a warning that these methods are outdated and may be removed in future versions, encouraging a transition to a more modern design. --- src/ReC.Client/ReCClient.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ReC.Client/ReCClient.cs b/src/ReC.Client/ReCClient.cs index 9a7faf1..795bb00 100644 --- a/src/ReC.Client/ReCClient.cs +++ b/src/ReC.Client/ReCClient.cs @@ -78,6 +78,7 @@ namespace ReC.Client /// /// The base URI of the ReC API. /// Thrown if the static provider has already been built. + [Obsolete("Use a local service collection instead of the static provider.")] public static void BuildStaticClient(string apiUri) { if(Provider != null) @@ -95,6 +96,7 @@ namespace ReC.Client /// /// A new instance of the . /// Thrown if has not been called yet. + [Obsolete("Use a local service collection instead of the static provider.")] public static ReCClient Create() { if (Provider == null)