Fix Nivel de Ejecución
This commit is contained in:
@@ -109,7 +109,8 @@ builder.Services.AddSingleton<WorkerConfigService>();
|
|||||||
// Registramos ambos workers. El framework se encargará de iniciarlos y detenerlos.
|
// Registramos ambos workers. El framework se encargará de iniciarlos y detenerlos.
|
||||||
builder.Services.AddHostedService<CriticalDataWorker>();
|
builder.Services.AddHostedService<CriticalDataWorker>();
|
||||||
builder.Services.AddHostedService<LowPriorityDataWorker>();
|
builder.Services.AddHostedService<LowPriorityDataWorker>();
|
||||||
//builder.Services.AddHostedService<Worker>();
|
|
||||||
|
var host = builder.Build();
|
||||||
|
|
||||||
// --- LÓGICA PARA LEER EL NIVEL DE LOGGING AL INICIO ---
|
// --- LÓGICA PARA LEER EL NIVEL DE LOGGING AL INICIO ---
|
||||||
// Creamos un scope temporal para leer la configuración de la BD
|
// 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
|
try
|
||||||
{
|
{
|
||||||
host.Run();
|
host.Run();
|
||||||
|
|||||||
Reference in New Issue
Block a user