ZUGFeRDWebService: Fix config

This commit is contained in:
Jonathan Jenne
2023-02-28 13:21:55 +01:00
parent 1c428b7db6
commit 2f11b7082b
3 changed files with 8 additions and 7 deletions

View File

@@ -33,10 +33,7 @@ namespace ZUGFeRDRESTService
services.AddControllers().AddNewtonsoftJson();
services.AddRazorPages();
// brauchen sie das überhaupt???!!!?!?!!
//services.Configure<Config>(Configuration.GetSection("Config"));
services.Configure<Config>(Configuration.GetSection("Config"));
services.AddSingleton<ILogging>(sp => new Logging(oLogPath, oLogDebug));
services.AddSingleton((Func<IServiceProvider, IDatabase>)(sp => {
var logging = sp.GetService<ILogging>();