From a20c2b556f283adcf07d4b3aac67d3bd60a6e263 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Mon, 14 Apr 2025 13:07:45 +0200 Subject: [PATCH] Add CommandDotNet support to IEnvelopeReceiverService Updated IEnvelopeReceiverService to utilize CommandDotNet for command-line functionality. Added a new command attribute to the VerifyAccessCodeAsync method, allowing it to be invoked via command line. Modified the method signature to accept a string identifier for the envelope receiver, enhancing its usability and alignment with intended functionality. --- .../Contracts/Services/IEnvelopeReceiverService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/EnvelopeGenerator.Application/Contracts/Services/IEnvelopeReceiverService.cs b/EnvelopeGenerator.Application/Contracts/Services/IEnvelopeReceiverService.cs index 0df0f2e9..cc384954 100644 --- a/EnvelopeGenerator.Application/Contracts/Services/IEnvelopeReceiverService.cs +++ b/EnvelopeGenerator.Application/Contracts/Services/IEnvelopeReceiverService.cs @@ -1,4 +1,5 @@ -using DigitalData.Core.Abstractions.Application; +using CommandDotNet; +using DigitalData.Core.Abstractions.Application; using DigitalData.Core.DTO; using EnvelopeGenerator.Application.DTOs.EnvelopeReceiver; using EnvelopeGenerator.Application.DTOs.Messaging; @@ -25,6 +26,7 @@ public interface IEnvelopeReceiverService : IBasicCRUDService> VerifyAccessCodeAsync(string uuid, string signature, string accessCode); + [Command("verify-access-code-async-by-id")] Task> VerifyAccessCodeAsync(string envelopeReceiverId, string accessCode); Task> IsExisting(string envelopeReceiverId);