A new static method `BuildStaticClient(Action<HttpClient> configureClient)` was added to the `ReC.Client` namespace in `ReCClient.cs`. This method configures and builds a static `IServiceProvider` for creating `ReCClient` instances. It includes XML documentation detailing its purpose, usage, and parameters, and warns that it should only be called once during application startup. The method accepts an `Action<HttpClient>` parameter for `HttpClient` configuration and throws an `InvalidOperationException` if the static provider is already built. It is marked `[Obsolete]` to encourage the use of a local service collection instead of the static provider. Additionally, the XML documentation for the `ReCClient` creation method was updated to reference the new `BuildStaticClient` method.
ReC
Description
Languages
C#
100%