From a12d74871d7159dbfe071898a2e97948c7b3ddde Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 25 Feb 2026 13:33:39 +0100 Subject: [PATCH] Refactor PDF burner options naming in WorkerOptions Renamed WorkerOptions.PdfBurnerParams to PdfBurner and updated its type from PDFBurnerParams to PDFBurnerOptions. Also renamed the record type accordingly and updated all references in the codebase. No changes to the structure or default values of the options. --- EnvelopeGenerator.ServiceHost/Jobs/FinalizeDocumentJob.cs | 2 +- EnvelopeGenerator.ServiceHost/Jobs/WorkerOptions.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/EnvelopeGenerator.ServiceHost/Jobs/FinalizeDocumentJob.cs b/EnvelopeGenerator.ServiceHost/Jobs/FinalizeDocumentJob.cs index 9dc58d78..71a43dc5 100644 --- a/EnvelopeGenerator.ServiceHost/Jobs/FinalizeDocumentJob.cs +++ b/EnvelopeGenerator.ServiceHost/Jobs/FinalizeDocumentJob.cs @@ -81,7 +81,7 @@ public class FinalizeDocumentJob(IOptions options, IConfiguration InitializeServices(state); _logger.Debug("Loading PDFBurner.."); - var pdfBurnerParams = _options.PdfBurnerParams; + var pdfBurnerParams = _options.PdfBurner; _pdfBurner = new PDFBurner(_logConfig, gdPictureKey, pdfBurnerParams, _databaseConnectionString); _logger.Debug("Loading PDFMerger.."); diff --git a/EnvelopeGenerator.ServiceHost/Jobs/WorkerOptions.cs b/EnvelopeGenerator.ServiceHost/Jobs/WorkerOptions.cs index ae89ff98..d3b2598a 100644 --- a/EnvelopeGenerator.ServiceHost/Jobs/WorkerOptions.cs +++ b/EnvelopeGenerator.ServiceHost/Jobs/WorkerOptions.cs @@ -10,9 +10,9 @@ public class WorkerOptions [Obsolete("Use ILogger.")] public bool Debug { get; set; } - public PDFBurnerParams PdfBurnerParams { get; set; } = new(); + public PDFBurnerOptions PdfBurner { get; set; } = new(); - public record PDFBurnerParams + public record PDFBurnerOptions { public List IgnoredLabels { get; set; } = ["Date", "Datum", "ZIP", "PLZ", "Place", "Ort", "Position", "Stellung"];