Changed the `Attachments` property type in `EnvelopeNotificationBase.cs` from `List` to `IReadOnlyList` to enhance immutability and thread safety. Updated the `FinalizeEnvelopeCommandHandler` in `FinalizeEnvelopeCommand.cs` to use a single-line syntax for `Attachments` initialization, improving code readability.
20 lines
452 B
C#
20 lines
452 B
C#
using EnvelopeGenerator.Domain.Constants;
|
|
|
|
namespace EnvelopeGenerator.Application.Common.Interfaces.Services.Notification;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public abstract record EnvelopeNotificationBase
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public abstract EmailTemplateType GetTemplateType();
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public IReadOnlyList<(string FileName, byte[] Content)>? Attachments { get; init; }
|
|
}
|