Add envelope finalization trigger and workflow updates

Introduced `EnvelopeFinalizationTrigger` to enable external
triggering of the `EnvelopeFinalizationWorker` for immediate
envelope processing. Updated `EnvelopeFinalizationWorker` to
support both polling and external triggers, improving
performance and flexibility.

Added `BackgroundServicesController` with an API endpoint to
trigger the worker, including configuration checks for
availability. Temporarily used `[AllowAnonymous]` with plans
to replace it with sender-scoped authorization.

Enhanced manual testing workflows in `AGENTS.md`:
- Standardized request-to-domain mapping policy.
- Migrated dynamic SQL to parameterized queries for security.
- Improved UX for deterministic row double-click behavior.
- Implemented SPA-style language switching.
- Added sender-scoped caching for recent receiver suggestions.

Updated dependency injection in `Program.cs` to register
`EnvelopeFinalizationTrigger` and ensure the worker is only
enabled when configured.
This commit is contained in:
2026-11-27 13:07:50 +01:00
parent 58d7d34562
commit 43758e3390
6 changed files with 113 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
namespace EnvelopeGenerator.Application.Common.Interfaces;
/// <summary>
///
/// </summary>
public interface IEnvelopeFinalizationTrigger
{
/// <summary>
///
/// </summary>
/// <returns></returns>
Task TriggerAsync();
}