Introduces the `IDocumentExecutor` interface with a method `CreateDocumentAsync` for asynchronous document creation. Implements the `DocumentExecutor` class that inherits from `SQLExecutor`, providing the functionality to create documents using a SQL connection and handle potential errors during the process.
19 lines
510 B
C#
19 lines
510 B
C#
using EnvelopeGenerator.Domain.Entities;
|
|
|
|
namespace EnvelopeGenerator.Application.Contracts.SQLExecutor;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public interface IDocumentExecutor
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="base64"></param>
|
|
/// <param name="envelope_uuid"></param>
|
|
/// <param name="cancellation"></param>
|
|
/// <returns></returns>
|
|
Task<EnvelopeDocument> CreateDocumentAsync(string base64, string envelope_uuid, CancellationToken cancellation = default);
|
|
}
|