Fix Nivel de Ejecución

This commit is contained in:
2025-09-06 21:56:29 -03:00
parent fa92d9638c
commit 475b886d9a

View File

@@ -109,7 +109,8 @@ builder.Services.AddSingleton<WorkerConfigService>();
// Registramos ambos workers. El framework se encargará de iniciarlos y detenerlos.
builder.Services.AddHostedService<CriticalDataWorker>();
builder.Services.AddHostedService<LowPriorityDataWorker>();
//builder.Services.AddHostedService<Worker>();
var host = builder.Build();
// --- LÓGICA PARA LEER EL NIVEL DE LOGGING AL INICIO ---
// Creamos un scope temporal para leer la configuración de la BD
@@ -140,8 +141,6 @@ using (var scope = builder.Services.BuildServiceProvider().CreateScope())
}
}
var host = builder.Build();
try
{
host.Run();