Add scoped ReCClient and update project dependencies
Added `services.AddScoped<ReCClient>()` to both `AddRecClient` method overloads in `DependencyInjection.cs` to ensure proper scoped registration of `ReCClient`. Updated `ReC.Client.csproj` to include necessary package references for dependency injection and HTTP client support: - `Microsoft.Extensions.DependencyInjection` (v10.0.0) - `Microsoft.Extensions.Http` (v8.0.0) - `System.Net.Http` (v4.3.4)
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
|
||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user