Refaktorisierung aller Nachrichteneigenschaften in ServiceMessage von List zu ICollection für verbesserte Flexibilität.

This commit is contained in:
Developer 02 2024-04-22 15:02:20 +02:00
parent bb5837047a
commit 29cdbbf7b1
32 changed files with 16 additions and 16 deletions

Binary file not shown.

View File

@ -67,48 +67,48 @@ namespace DigitalData.Core.Application
/// success notifications, or other relevant information related to the operation's outcome.
/// </summary>
[Obsolete("Deprecated: Use ClientMessages instead.")]
public List<string> Messages { get; init; } = new();
public ICollection<string> Messages { get; init; } = new List<string>();
/// <summary>
/// Gets a collection of messages intended for client display. This replaces the deprecated 'Messages' property.
/// </summary>
public List<string> ClientMessages { get; init; } = new();
public ICollection<string> ClientMessages { get; init; } = new List<string>();
/// <summary>
/// Gets a collection of messages used for tracing program execution at a fine-grained level. These are typically voluminous and detailed.
/// </summary>
[JsonIgnore]
public List<string> TraceMessages { get; init; } = new();
public ICollection<string> TraceMessages { get; init; } = new List<string>();
/// <summary>
/// Gets a collection of messages helpful for debugging during development. These messages are often diagnostic.
/// </summary>
[JsonIgnore]
public List<string> DebugMessages { get; init; } = new();
public ICollection<string> DebugMessages { get; init; } = new List<string>();
/// <summary>
/// Gets a collection of informational messages, less critical than warnings, generally used for non-critical notifications.
/// </summary>
[JsonIgnore]
public List<string> InformationMessages { get; init; } = new();
public ICollection<string> InformationMessages { get; init; } = new List<string>();
/// <summary>
/// Gets a collection of messages indicating potential issues that are not necessarily errors, but which may require attention.
/// </summary>
[JsonIgnore]
public List<string> WarningMessages { get; init; } = new();
public ICollection<string> WarningMessages { get; init; } = new List<string>();
/// <summary>
/// Gets a collection of error messages indicating failures or problems within the service.
/// </summary>
[JsonIgnore]
public List<string> ErrorMessages { get; init; } = new();
public ICollection<string> ErrorMessages { get; init; } = new List<string>();
/// <summary>
/// Gets a collection of messages indicating critical issues that require immediate attention.
/// </summary>
[JsonIgnore]
public List<string> CriticalMessages { get; init; } = new();
public ICollection<string> CriticalMessages { get; init; } = new List<string>();
/// <summary>
/// A function that translates a message key from a string to its localized or transformed representation.

View File

@ -35,48 +35,48 @@ namespace DigitalData.Core.Contracts.Application
/// success notifications, or other relevant information related to the operation's outcome.
/// </summary>
[Obsolete("Deprecated: Use ClientMessages instead.")]
List<string> Messages { get; init; }
ICollection<string> Messages { get; init; }
/// <summary>
/// Gets a collection of messages intended for client display. This replaces the deprecated 'Messages' property.
/// </summary>
List<string> ClientMessages { get; init; }
ICollection<string> ClientMessages { get; init; }
/// <summary>
/// Gets a collection of messages used for tracing program execution at a fine-grained level. These are typically voluminous and detailed.
/// </summary>
[JsonIgnore]
List<string> TraceMessages { get; init; }
ICollection<string> TraceMessages { get; init; }
/// <summary>
/// Gets a collection of messages helpful for debugging during development. These messages are often diagnostic.
/// </summary>
[JsonIgnore]
List<string> DebugMessages { get; init; }
ICollection<string> DebugMessages { get; init; }
/// <summary>
/// Gets a collection of informational messages, less critical than warnings, generally used for non-critical notifications.
/// </summary>
[JsonIgnore]
List<string> InformationMessages { get; init; }
ICollection<string> InformationMessages { get; init; }
/// <summary>
/// Gets a collection of messages indicating potential issues that are not necessarily errors, but which may require attention.
/// </summary>
[JsonIgnore]
List<string> WarningMessages { get; init; }
ICollection<string> WarningMessages { get; init; }
/// <summary>
/// Gets a collection of error messages indicating failures or problems within the service.
/// </summary>
[JsonIgnore]
List<string> ErrorMessages { get; init; }
ICollection<string> ErrorMessages { get; init; }
/// <summary>
/// Gets a collection of messages indicating critical issues that require immediate attention.
/// </summary>
[JsonIgnore]
List<string> CriticalMessages { get; init; }
ICollection<string> CriticalMessages { get; init; }
/// <summary>
/// A function that translates a message key from a string to its localized or transformed representation.