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);
}
}