Generation of default appsettings.json when implementing dependency injection in BackgroungWorker, .NET6
I wrote an application which main purpose is collecting data by OPC UA protocol. I use IHosting extension method UseWindowsService when builidng host. As this was my first project where I tried dependency injection, I created logging class for writing info to txt files on target system. I also use appsettings.json for application settings: