using EnvelopeGenerator.Application.Dto.EnvelopeReceiver; using MediatR; namespace EnvelopeGenerator.Application.Common.Notifications; /// /// /// /// public record DocSignedNotification(EnvelopeReceiverDto Original) : EnvelopeReceiverDto(Original), INotification { } /// /// /// public static class DocSignedNotificationExtensions { /// /// Converts an to a . /// /// The DTO to convert. /// A new instance. public static DocSignedNotification ToDocSignedNotification(this EnvelopeReceiverDto dto) => new (dto); /// /// Asynchronously converts a to a . /// /// The task that returns the DTO to convert. /// A task that represents the asynchronous conversion operation. public static async Task ToDocSignedNotification(this Task dtoTask) => new(await dtoTask); }