add dependencies and configure AddEConnectClient

This commit is contained in:
Developer 02 2025-08-14 18:33:21 +02:00
parent 92910ecb19
commit 8db4b6e15a
2 changed files with 9 additions and 0 deletions

View File

@ -14,4 +14,9 @@
<Folder Include="Controllers\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Leanetec.EConnect.Client\Leanetec.EConnect.Client.csproj" />
<ProjectReference Include="..\Leanetec.EConnect.Infrastructure\Leanetec.EConnect.Infrastructure.csproj" />
</ItemGroup>
</Project>

View File

@ -1,6 +1,10 @@
using Leanetec.EConnect.Client;
using Leanetec.EConnect.Infrastructure;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddEConnectClient(opt => { }).AddInfrastructureServices(opt => { });
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle