using DigitalData.Core.Abstraction.Application.Repository; using MediatR; namespace EnvelopeGenerator.Application.Common.Notifications.RemoveSignature.Handlers; /// /// /// public class RemoveAnnotationHandler : INotificationHandler { private readonly IRepository _repo; /// /// /// /// public RemoveAnnotationHandler(IRepository repository) { _repo = repository; } /// /// /// /// /// /// public async Task Handle(RemoveSignatureNotification notification, CancellationToken cancel) { await _repo.DeleteAsync(s => s.Envelope!.Uuid == notification.EnvelopeUuid, cancel); } }