namespace DigitalData.MessagingService.Abstraction; public record EmailContext { #if NETFRAMEWORK public EmailAccountDto Sender { get; set; } = null!; #else public required EmailAccountDto Sender { get; init; } #endif /// /// Recipient email address /// #if NETFRAMEWORK public IEnumerable Recipients { get; set; } = null!; #else public required IEnumerable Recipients { get; init; } #endif /// /// Email subject /// #if NETFRAMEWORK public string Subject { get; set; } = null!; #else public required string Subject { get; init; } #endif /// /// Email body (HTML or plain text) /// #if NETFRAMEWORK public string Body { get; set; } = null!; #else public required string Body { get; init; } #endif /// /// Is HTML email (default: true) /// #if NETFRAMEWORK public bool IsHtml { get; set; } = true; #else public bool IsHtml { get; init; } = true; #endif }