diff --git a/EnvelopeGenerator.ServiceHost/Jobs/WorkerOptions.cs b/EnvelopeGenerator.ServiceHost/Jobs/WorkerOptions.cs index c94a1196..46a76dcb 100644 --- a/EnvelopeGenerator.ServiceHost/Jobs/WorkerOptions.cs +++ b/EnvelopeGenerator.ServiceHost/Jobs/WorkerOptions.cs @@ -1,10 +1,21 @@ -using EnvelopeGenerator.ServiceHost.Jobs.FinalizeDocument; -using System.Drawing; - namespace EnvelopeGenerator.ServiceHost.Jobs; public class WorkerOptions { + private int _delayMilliseconds = 1000; + + public int DelayMilliseconds + { + get => _delayMilliseconds; + set + { + if (value < 1) + throw new ArgumentOutOfRangeException(nameof(value), "Delay must be at least 1 millisecond."); + + _delayMilliseconds = value; + } + } + public string GdPictureLicenseKey { get; set; } = null!; public PDFBurnerOptions PdfBurner { get; set; } = new();