From a0ed3e2fe4c62cf154b984cdc47ea43bf2757ce5 Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 9 Jun 2026 23:28:59 +0200 Subject: [PATCH] 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. --- .../Behaviors/SaveSignatureBehavior.cs | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 EnvelopeGenerator.Application/DocReceiverElements/Behaviors/SaveSignatureBehavior.cs diff --git a/EnvelopeGenerator.Application/DocReceiverElements/Behaviors/SaveSignatureBehavior.cs b/EnvelopeGenerator.Application/DocReceiverElements/Behaviors/SaveSignatureBehavior.cs new file mode 100644 index 00000000..0172ea62 --- /dev/null +++ b/EnvelopeGenerator.Application/DocReceiverElements/Behaviors/SaveSignatureBehavior.cs @@ -0,0 +1,51 @@ +using EnvelopeGenerator.Application.Common.Dto; +using EnvelopeGenerator.Application.DocStatus.Commands; +using EnvelopeGenerator.Domain.Constants; +using MediatR; +using System.Text.Json; + +<<<<<<< TODO: Unmerged change from project 'EnvelopeGenerator.Application (net8.0)', Before: +======= +using EnvelopeGenerator.Application.DocReceiverElements.Commands.SigningCommand.SigningCommand; +using EnvelopeGenerator.Application.DocReceiverElements.Commands.SigningCommand; +>>>>>>> After + +<<<<<<< TODO: Unmerged change from project 'EnvelopeGenerator.Application (net9.0)', Before: +======= +using EnvelopeGenerator.Application.DocReceiverElements.Commands.SigningCommand; +>>>>>>> After +using EnvelopeGenerator.Application.DocReceiverElements.Commands.SigningCommand.SigningCommand.SigningCommand; +using EnvelopeGenerator.Application.DocReceiverElements.Commands.SigningCommand.SigningCommand; +using EnvelopeGenerator.Application.DocReceiverElements.Commands.SigningCommand; + +namespace EnvelopeGenerator.Application.DocReceiverElements.Behaviors; + +/// +/// Pipeline behavior that creates document status. +/// Executes second in the signing process. +/// +public class SaveSignatureBehavior : IPipelineBehavior +{ + private readonly ISender _sender; + + /// + /// + /// + /// + public SaveSignatureBehavior(ISender sender) + { + _sender = sender; + } + + /// + /// + /// + /// + /// + /// + /// + public async Task Handle(SigningCommand request, RequestHandlerDelegate next, CancellationToken cancellationToken) + { + return await next(cancellationToken); + } +}