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.
This commit is contained in:
2026-02-25 13:33:39 +01:00
parent 45b715ed74
commit a12d74871d
2 changed files with 3 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ public class FinalizeDocumentJob(IOptions<WorkerOptions> options, IConfiguration
InitializeServices(state); InitializeServices(state);
_logger.Debug("Loading PDFBurner.."); _logger.Debug("Loading PDFBurner..");
var pdfBurnerParams = _options.PdfBurnerParams; var pdfBurnerParams = _options.PdfBurner;
_pdfBurner = new PDFBurner(_logConfig, gdPictureKey, pdfBurnerParams, _databaseConnectionString); _pdfBurner = new PDFBurner(_logConfig, gdPictureKey, pdfBurnerParams, _databaseConnectionString);
_logger.Debug("Loading PDFMerger.."); _logger.Debug("Loading PDFMerger..");

View File

@@ -10,9 +10,9 @@ public class WorkerOptions
[Obsolete("Use ILogger.")] [Obsolete("Use ILogger.")]
public bool Debug { get; set; } 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<string> IgnoredLabels { get; set; } = ["Date", "Datum", "ZIP", "PLZ", "Place", "Ort", "Position", "Stellung"]; public List<string> IgnoredLabels { get; set; } = ["Date", "Datum", "ZIP", "PLZ", "Place", "Ort", "Position", "Stellung"];