refactor(ClientOptions): move to inf layer

This commit is contained in:
2025-08-15 10:39:25 +02:00
parent c21e4a93ef
commit 3af571ea37
5 changed files with 17 additions and 53 deletions

View File

@@ -6,7 +6,7 @@ var config = builder.Configuration;
// Add services to the container.
var clientOpt = config.GetSection("EConnect");
builder.Services.AddEConnectClient(opt => opt.ConfigureClient(clientOpt)).AddInfrastructureServices();
builder.Services.AddEConnectClient().AddInfrastructureServices(opt => opt.ConfigureClient(clientOpt));
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle