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