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:
@@ -89,6 +89,9 @@ public static class DependencyInjection
|
||||
|
||||
// 5. SendSignedMailBehavior - Sends notification email (executes LAST)
|
||||
cfg.AddBehavior<IPipelineBehavior<SigningCommand, Unit>, SendSignedMailBehavior>();
|
||||
|
||||
// 6. TriggerFinalizationWorkerBehavior - Triggers the finalization worker (executes LAST)
|
||||
cfg.AddBehavior<IPipelineBehavior<SigningCommand, Unit>, TriggerFinalizationWorkerBehavior>();
|
||||
});
|
||||
|
||||
services.AddValidatorsFromAssembly(Assembly.GetExecutingAssembly());
|
||||
|
||||
Reference in New Issue
Block a user