ZUGFeRDRESTService: Prepare Zugferd 2x

This commit is contained in:
Jonathan Jenne
2023-02-28 12:56:43 +01:00
parent bd03e5b925
commit 1c428b7db6
5 changed files with 104 additions and 27 deletions

View File

@@ -33,7 +33,10 @@ namespace ZUGFeRDRESTService
services.AddControllers().AddNewtonsoftJson();
services.AddRazorPages();
services.Configure<Config>(Configuration.GetSection("Config"));
// brauchen sie das überhaupt???!!!?!?!!
//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>();