Implemented Email and Hash Service

This commit is contained in:
2026-08-20 16:14:35 +02:00
parent 7415a53ee2
commit 8fb4aac0c1
13 changed files with 452 additions and 0 deletions
@@ -0,0 +1,26 @@
namespace PostFundManagement.Domain.Models.Email;
public sealed class Body : IDisposable
{
public string? Message { get; set; }
public ReadOnlyCollection<Attachment>? Attachments { get; set; }
public BodyProperties Properties { get; set; } = new();
public void Dispose()
{
if (Attachments is null) return;
foreach (var attachment in Attachments!)
{
if (attachment is not null)
{
attachment.FileStream!.Close();
attachment.FileStream!.Dispose();
}
}
GC.SuppressFinalize(this);
}
}