Added scheduler call type using Quartz

This commit is contained in:
2025-08-23 13:32:42 +02:00
parent acf5106041
commit b1cda26bb9
5 changed files with 105 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ using ElmahCore;
using ElmahCore.Mvc;
using ElmahCore.Mvc.Logger;
using Serilog;
using Quartz;
var builder = WebApplication.CreateBuilder(args);
@@ -30,6 +31,8 @@ builder.Services.AddElmah<XmlFileErrorLog>(Options =>
Options.LogPath = builder.Configuration.GetValue<string>("EmbeddingsearchIndexer:Elmah:LogFolder") ?? "~/logs";
});
builder.Services.AddQuartz();
var app = builder.Build();
List<string>? allowedIps = builder.Configuration.GetSection("EmbeddingsearchIndexer:Elmah:AllowedHosts")
.Get<List<string>>();