Refactor Attachments property and syntax

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.
This commit is contained in:
2026-10-28 16:28:17 +01:00
parent 8aabc3e233
commit a35e05d016
2 changed files with 2 additions and 4 deletions

View File

@@ -15,5 +15,5 @@ public abstract record EnvelopeNotificationBase
/// <summary>
///
/// </summary>
public List<(string FileName, byte[] Content)>? Attachments { get; init; }
public IReadOnlyList<(string FileName, byte[] Content)>? Attachments { get; init; }
}