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:
@@ -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..");
|
||||||
|
|||||||
@@ -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"];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user