Migrated the legacy VB.NET Windows Service to a modern C# Worker Service targeting .NET Framework 4.6.2. Key changes include: - Added `Microsoft.Extensions.Hosting.WindowsServices`, `NLog`, and `Quartz` for logging and scheduling. - Introduced `LogConfigFactory` to bridge `ServiceConfig` and `LogConfig` for Quartz jobs. - Rewrote `Worker` to handle the full service lifecycle, including database connection, temp file management, and scheduler initialization. - Implemented `SchedulerFinishEnvelope` and `SchedulerEnvelopeTaskApi` for Quartz job scheduling. - Created `TempFiles` for service-level temp file management. - Configured `NLog` for file and console logging. - Updated `appsettings.json` for connection strings and service-specific configuration. - Replaced legacy `ProjectInstaller` with `AddWindowsService()` for SCM integration.
25 lines
619 B
JSON
25 lines
619 B
JSON
{
|
|
"ConnectionStrings": {
|
|
"Default": "Server=SDD-VMP04-SQL17\\DD_DEVELOP01;Database=DD_ECM;User Id=sa;Password=dd;Encrypt=false;TrustServerCertificate=True;"
|
|
},
|
|
"ServiceConfig": {
|
|
"Debug": false,
|
|
"IntervalInMin": 1,
|
|
"PDFBurnerParams": {
|
|
"IgnoredLabels": [ "Date", "Datum", "ZIP", "PLZ", "Place", "Ort", "Position", "Stellung" ],
|
|
"TopMargin": 0.1,
|
|
"YOffset": -0.3,
|
|
"FontName": "Arial",
|
|
"FontSize": 8,
|
|
"FontStyle": 2,
|
|
"TruncationSuffix": "..",
|
|
"TextMaxWidths": {
|
|
"position": 1.41,
|
|
"city": 1.41,
|
|
"date": 2.0
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|