Add TriggerFinalizationWorkerBehavior to pipeline

Updated IEnvelopeFinalizationTrigger to support CancellationToken
in TriggerAsync for improved cancellation handling. Introduced
TriggerFinalizationWorkerBehavior to trigger finalization in the
SigningCommand pipeline. Updated DependencyInjection to include
the new behavior. Refactored EnvelopeFinalizationTrigger to align
with interface changes and removed unused using directives.
This commit is contained in:
2026-11-27 13:08:16 +01:00
parent 43758e3390
commit fa5f28a58f
4 changed files with 32 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
using EnvelopeGenerator.Application.Common.Interfaces;
using System.Threading;
namespace EnvelopeGenerator.Server.BackgroundServices;
@@ -20,7 +19,7 @@ public sealed class EnvelopeFinalizationTrigger : IEnvelopeFinalizationTrigger
///
/// </summary>
/// <returns></returns>
public Task TriggerAsync()
public Task TriggerAsync(CancellationToken cancellationToken = default)
{
Trigger();
return Task.CompletedTask;