This commit introduces two new dependencies: `IEnvelopeExecutor` and `IEnvelopeReceiverExecutor`. The `using` directive for `IEnvelopeExecutor` has been added, and a new private field `_erExecutor` has been introduced in the `CreateEnvelopeReceiverCommandHandler` class. A constructor has also been added to initialize both `_envelopeExecutor` and `_erExecutor`, enabling the handler to effectively process envelope-related commands.
41 lines
1.7 KiB
C#
41 lines
1.7 KiB
C#
using EnvelopeGenerator.Application.Contracts.SQLExecutor;
|
|
using MediatR;
|
|
|
|
namespace EnvelopeGenerator.Application.EnvelopeReceivers.Commands.Create;
|
|
|
|
/// <summary>
|
|
/// Handles the creation of an envelope along with its associated document and recipients.
|
|
/// This command processes the envelope data, including title, message, document content,
|
|
/// recipient list, and optional two-factor authentication settings.
|
|
/// </summary>
|
|
public class CreateEnvelopeReceiverCommandHandler : IRequestHandler<CreateEnvelopeReceiverCommand>
|
|
{
|
|
private readonly IEnvelopeExecutor _envelopeExecutor;
|
|
|
|
private readonly IEnvelopeReceiverExecutor _erExecutor;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="envelopeExecutor"></param>
|
|
/// <param name="erExecutor"></param>
|
|
public CreateEnvelopeReceiverCommandHandler(IEnvelopeExecutor envelopeExecutor, IEnvelopeReceiverExecutor erExecutor)
|
|
{
|
|
_envelopeExecutor = envelopeExecutor;
|
|
_erExecutor = erExecutor;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Handles the execution of the <see cref="CreateEnvelopeReceiverCommand"/>.
|
|
/// Responsible for validating input data, creating or retrieving recipients, associating signatures,
|
|
/// and storing the envelope and document details.
|
|
/// </summary>
|
|
/// <param name="request">The command containing all necessary information to create an envelope.</param>
|
|
/// <param name="cancellationToken">Token to observe while waiting for the task to complete.</param>
|
|
/// <returns>A task representing the asynchronous operation.</returns>
|
|
public Task Handle(CreateEnvelopeReceiverCommand request, CancellationToken cancellationToken)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|