feat(Program): DeferredServiceProvider-Instanz erstellen und Fabrik einstellen

This commit is contained in:
Developer 02 2025-04-28 15:08:07 +02:00
parent 27e9de4709
commit dcdf0844cb

View File

@ -10,11 +10,14 @@ using Microsoft.OpenApi.Models;
using DigitalData.UserManager.DependencyInjection;
using EnvelopeGenerator.Application;
using DigitalData.Auth.Client;
using DigitalData.Core.Abstractions;
var builder = WebApplication.CreateBuilder(args);
var config = builder.Configuration;
var deferredProvider = new DeferredServiceProvider();
builder.Services.AddControllers();
//CORS Policy
@ -116,6 +119,8 @@ builder.Services
var app = builder.Build();
deferredProvider.Factory = () => app.Services;
app.MapOpenApi();
// Configure the HTTP request pipeline.