Refactor ReCClient to use IHttpClientFactory
Updated ReCClient to use IHttpClientFactory for improved resource management and testability. Added package references for `Microsoft.Extensions.Http`, `System.Net.Http`, and `System.Text.Json` to support HTTP client functionality and JSON serialization. Included `System.Xml.Linq` for potential XML-related operations. Updated constructor logic to create `HttpClient` instances via the factory pattern.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.0" />
|
||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||
<PackageReference Include="System.Text.Json" Version="9.0.11" />
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user