feat(DIExtensions): Zur Verwaltung von Abhängigkeitsinjektionen von ConsumerAPiService.

This commit is contained in:
Developer 02
2025-01-15 10:19:25 +01:00
parent 8e5180188e
commit b1bfc46a60
3 changed files with 21 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
using DigitalData.Auth.API.Config;
using DigitalData.Auth.API.Services;
var builder = WebApplication.CreateBuilder(args);
@@ -10,6 +11,7 @@ var apiParams = config.Get<AuthApiParams>() ?? throw new InvalidOperationExcepti
// Add services to the container.
builder.Services.Configure<AuthApiParams>(config);
builder.Services.AddConsumerApiServiceFromConfiguration(config);
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle