ZUGFeRDWebService: Fix config
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user