Commit Graph

8 Commits

Author SHA1 Message Date
6657b6b15a Add remote trigger support for finalization worker
Introduced `RemoteEnvelopeFinalizationTrigger` to enable triggering the envelope finalization worker via a remote HTTP endpoint. Added `BackgroundServicesOptions` for centralized configuration of background services, including enabling/disabling the local worker and configuring the remote trigger URL.

Enhanced `TriggerFinalizationWorkerBehavior` with improved error handling and logging using `ILogger`. Added `DisableControllerConvention` to dynamically exclude controllers based on configuration.

Updated `Program.cs` for conditional service registration and improved configuration loading. Modified `appsettings.json` and `appsettings.Development.json` to include remote trigger settings. Incremented project version to `2.1.0-beta`.

Refactored code for better maintainability, scalability, and observability.
2026-11-27 13:33:40 +01:00
fa5f28a58f 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.
2026-11-27 13:08:16 +01:00
67faa441b8 Refactor SendSignedMailBehavior for simplicity
Refactored the `SendSignedMailBehavior` class to streamline its implementation by removing unnecessary dependencies and simplifying the notification logic. Replaced the constructor with a primary constructor using `IEnvelopeNotificationService` as the sole dependency. Updated the `Handle` method to use `Notify` from `IEnvelopeNotificationService` for sending `DocumentSignedNotification`, eliminating the need for placeholder replacement and repository interactions. Removed unused methods and namespaces, and updated class documentation.
2026-11-26 16:42:28 +01:00
380a5f4c0c Add signature submission feature and pipeline updates
Introduced a new feature for submitting signatures, including
backend and frontend changes. Added `SignatureSubmitDto` and
`SubmitAsync` in `SignatureService` to handle signature data
submission. Implemented a new `Submit` endpoint in
`SignatureController` to validate and process signature payloads.

Updated pipeline behaviors to include `SaveSignatureBehavior`
and adjusted the execution order. Enhanced query logic in
`EnvelopeReceiverResolutionBehavior` and `SaveSignatureBehavior`
to align with the updated data model.

Refactored `EGDbContext` to improve trigger handling and logging.
Updated `ReceiverSignedPage.razor` to integrate `SignatureService`
and handle submission errors gracefully. Adjusted application
URLs in `launchSettings.json` and added new database triggers
in `appsettings.json`.
2026-09-28 12:21:44 +02:00
90661cb856 Enhance SaveSignatureBehavior with validation and repo logic
Updated SaveSignatureBehavior.cs to improve functionality:
- Added new dependencies: AutoMapper, IRepository, and EF Core.
- Enhanced constructor to initialize new dependencies.
- Updated Handle method to validate signatures and handle errors.
- Introduced repository operations for querying and updating elements.
- Improved error handling with BadRequestException.
- Cleaned up redundant code and resolved namespace conflicts.
2026-06-10 15:18:53 +02:00
d0a50f63db Improve validation and error handling in AnnotationBehavior
Updated `using` directives to include `DigitalData.Core.Exceptions` for enhanced exception handling. Updated the `[Obsolete]` attribute message to reflect PSPDFKit library deprecation. Renamed `cancellationToken` to `cancel` for consistency.

Added validation to ensure `PsPdfKitAnnotation` is only supported for the `LegacyWeb` receiver type. Introduced stricter checks for missing or invalid annotation data, throwing `BadRequestException` when necessary. Updated `await next` calls to use the renamed parameter.

These changes improve code clarity, enforce stricter validation, and enhance error handling.
2026-06-10 15:17:25 +02:00
a0ed3e2fe4 Add SaveSignatureBehavior and resolve merge conflicts
Introduced the `SaveSignatureBehavior` class as a pipeline behavior for handling `SigningCommand` requests. Added necessary `using` directives to include required namespaces. Resolved merge conflicts in `using` directives between `net8.0` and `net9.0` project versions. Implemented the `Handle` method to delegate request processing.
2026-06-09 23:28:59 +02:00
1bfdbac8ff rename Application.Signature directory as DocReceiverElements 2026-06-09 23:06:30 +02:00