feat(IEConnectClient): create interface to handle abse http client operations

This commit is contained in:
Developer 02 2025-08-12 19:38:22 +02:00
parent 11ab4388d0
commit 757ba77179
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,11 @@
using Leanetec.EConnect.Domain.Entities;
namespace Leanetec.EConnect.Client.Interface;
public interface IEConnectClient<TError> where TError : class
{
public Task<Response<TData, TError>> GetAsync<TData>(string? route, CancellationToken cancel = default) where TData : class;
public Task<Response<IAsyncEnumerable<TData?>, TError>> GetListAsAsyncEnumerable<TData>(string? route, CancellationToken cancel = default)
where TData : class;
}

View File

@ -11,4 +11,8 @@
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Leanetec.EConnect.Domain\Leanetec.EConnect.Domain.csproj" />
</ItemGroup>
</Project>