refactor: move CreateAnnotationCommand extension to separate static class
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using AngleSharp.Dom;
|
||||
using DigitalData.Core.Abstraction.Application.Repository;
|
||||
using DigitalData.Core.Abstraction.Application.Repository;
|
||||
using EnvelopeGenerator.Application.Common.Extensions;
|
||||
using EnvelopeGenerator.Application.Common.Query;
|
||||
using EnvelopeGenerator.Domain.Entities;
|
||||
@@ -48,6 +47,22 @@ public record CreateAnnotationCommand : EnvelopeReceiverQueryBase, IRequest<IEnu
|
||||
public ExpandoObject PSPDFKitInstant => _lazyPSPDFKitInstant.Value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public static class CreateAnnotationCommandExtensions
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="envelopeKey"></param>
|
||||
/// <param name="cancel"></param>
|
||||
/// <returns></returns>
|
||||
public static Task<IEnumerable<Signature>> CreateAnnotation(this ISender sender, string envelopeKey, CancellationToken cancel = default)
|
||||
=> sender.Send(new CreateAnnotationCommand() { Key = envelopeKey }, cancel);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user