Hinzufügen und Dokumentieren von Flag-Erweiterungsmethoden in ServiceMessageExtensions zum Setzen und Überprüfen von Flags
This commit is contained in:
@@ -27,7 +27,7 @@ namespace DigitalData.Core.Contracts.Application
|
||||
/// </summary>
|
||||
/// <param name="flag">The flag to check against the current service message's flag.</param>
|
||||
/// <returns>true if the flags match; otherwise, false.</returns>
|
||||
public bool HasFlag(Enum flag) => Flag.ToString() == flag.ToString();
|
||||
public bool HasFlag(Enum flag) => Flag?.ToString() == flag.ToString();
|
||||
|
||||
/// <summary>
|
||||
/// [Obsolete("Deprecated: Use ClientMessages instead.")]
|
||||
|
||||
Reference in New Issue
Block a user