diff --git a/.vs/DigitalData.Core/v17/.suo b/.vs/DigitalData.Core/v17/.suo index 63350ac..e2aab42 100644 Binary files a/.vs/DigitalData.Core/v17/.suo and b/.vs/DigitalData.Core/v17/.suo differ diff --git a/DigitalData.Core.Application/Flag.cs b/DigitalData.Core.Application/Flag.cs new file mode 100644 index 0000000..5c1bc3c --- /dev/null +++ b/DigitalData.Core.Application/Flag.cs @@ -0,0 +1,19 @@ +namespace DigitalData.Core.Application +{ + /// + /// Defines flags that indicate specific types of status or conditions in a service operation. + /// These flags help in categorizing and identifying specific circumstances or issues that may arise during execution. + /// + public enum Flag + { + /// + /// Indicates that no specific condition or status is associated with the service operation. + /// + Null, + + /// + /// Indicates a security breach or vulnerability has been detected during the service operation. + /// + SecurityBreach + } +} \ No newline at end of file diff --git a/DigitalData.Core.Application/ServiceMessage.cs b/DigitalData.Core.Application/ServiceMessage.cs index e355044..d590bef 100644 --- a/DigitalData.Core.Application/ServiceMessage.cs +++ b/DigitalData.Core.Application/ServiceMessage.cs @@ -46,6 +46,21 @@ namespace DigitalData.Core.Application /// public bool IsSuccess { get; set; } = false; + /// + /// Gets or sets the flag that indicates the specific status type of the service operation. + /// This flag helps in categorizing the state of the operation more granularly. + /// + [JsonIgnore] + public Enum Flag { get; set; } = Application.Flag.Null; + + /// + /// Checks if the current service message's flag matches the specified flag. + /// This method is useful for conditional logic based on the status of the operation. + /// + /// The flag to check against the current service message's flag. + /// true if the flags match; otherwise, false. + public bool HasFlag(Enum flag) => Flag.ToString() == flag.ToString(); + /// /// [Obsolete("Deprecated: Use ClientMessages instead.")] /// Gets a collection of messages associated with the service operation. These messages can be error descriptions, diff --git a/DigitalData.Core.Application/bin/Debug/net7.0/DigitalData.Core.Application.dll b/DigitalData.Core.Application/bin/Debug/net7.0/DigitalData.Core.Application.dll index 4abab97..5c11253 100644 Binary files a/DigitalData.Core.Application/bin/Debug/net7.0/DigitalData.Core.Application.dll and b/DigitalData.Core.Application/bin/Debug/net7.0/DigitalData.Core.Application.dll differ diff --git a/DigitalData.Core.Application/bin/Debug/net7.0/DigitalData.Core.Application.pdb b/DigitalData.Core.Application/bin/Debug/net7.0/DigitalData.Core.Application.pdb index db723a1..001c59b 100644 Binary files a/DigitalData.Core.Application/bin/Debug/net7.0/DigitalData.Core.Application.pdb and b/DigitalData.Core.Application/bin/Debug/net7.0/DigitalData.Core.Application.pdb differ diff --git a/DigitalData.Core.Application/bin/Debug/net7.0/DigitalData.Core.Contracts.dll b/DigitalData.Core.Application/bin/Debug/net7.0/DigitalData.Core.Contracts.dll index b2f6929..66d53ba 100644 Binary files a/DigitalData.Core.Application/bin/Debug/net7.0/DigitalData.Core.Contracts.dll and b/DigitalData.Core.Application/bin/Debug/net7.0/DigitalData.Core.Contracts.dll differ diff --git a/DigitalData.Core.Application/bin/Debug/net7.0/DigitalData.Core.Contracts.pdb b/DigitalData.Core.Application/bin/Debug/net7.0/DigitalData.Core.Contracts.pdb index a2e6ca4..a3f0839 100644 Binary files a/DigitalData.Core.Application/bin/Debug/net7.0/DigitalData.Core.Contracts.pdb and b/DigitalData.Core.Application/bin/Debug/net7.0/DigitalData.Core.Contracts.pdb differ diff --git a/DigitalData.Core.Application/obj/Debug/net7.0/DigitalData.Core.Application.csproj.AssemblyReference.cache b/DigitalData.Core.Application/obj/Debug/net7.0/DigitalData.Core.Application.csproj.AssemblyReference.cache index dbd4edc..b22f14c 100644 Binary files a/DigitalData.Core.Application/obj/Debug/net7.0/DigitalData.Core.Application.csproj.AssemblyReference.cache and b/DigitalData.Core.Application/obj/Debug/net7.0/DigitalData.Core.Application.csproj.AssemblyReference.cache differ diff --git a/DigitalData.Core.Application/obj/Debug/net7.0/DigitalData.Core.Application.csproj.CoreCompileInputs.cache b/DigitalData.Core.Application/obj/Debug/net7.0/DigitalData.Core.Application.csproj.CoreCompileInputs.cache index c0d4346..121fff9 100644 --- a/DigitalData.Core.Application/obj/Debug/net7.0/DigitalData.Core.Application.csproj.CoreCompileInputs.cache +++ b/DigitalData.Core.Application/obj/Debug/net7.0/DigitalData.Core.Application.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -1204f54a36145ece1945026f8fb6c0371ee8b734 +cab2f6eb8a1a8332777e30db94aff8080085a4c2 diff --git a/DigitalData.Core.Application/obj/Debug/net7.0/DigitalData.Core.Application.dll b/DigitalData.Core.Application/obj/Debug/net7.0/DigitalData.Core.Application.dll index 4abab97..5c11253 100644 Binary files a/DigitalData.Core.Application/obj/Debug/net7.0/DigitalData.Core.Application.dll and b/DigitalData.Core.Application/obj/Debug/net7.0/DigitalData.Core.Application.dll differ diff --git a/DigitalData.Core.Application/obj/Debug/net7.0/DigitalData.Core.Application.pdb b/DigitalData.Core.Application/obj/Debug/net7.0/DigitalData.Core.Application.pdb index db723a1..001c59b 100644 Binary files a/DigitalData.Core.Application/obj/Debug/net7.0/DigitalData.Core.Application.pdb and b/DigitalData.Core.Application/obj/Debug/net7.0/DigitalData.Core.Application.pdb differ diff --git a/DigitalData.Core.Application/obj/Debug/net7.0/ref/DigitalData.Core.Application.dll b/DigitalData.Core.Application/obj/Debug/net7.0/ref/DigitalData.Core.Application.dll index 2b5900f..d301884 100644 Binary files a/DigitalData.Core.Application/obj/Debug/net7.0/ref/DigitalData.Core.Application.dll and b/DigitalData.Core.Application/obj/Debug/net7.0/ref/DigitalData.Core.Application.dll differ diff --git a/DigitalData.Core.Application/obj/Debug/net7.0/refint/DigitalData.Core.Application.dll b/DigitalData.Core.Application/obj/Debug/net7.0/refint/DigitalData.Core.Application.dll index 2b5900f..d301884 100644 Binary files a/DigitalData.Core.Application/obj/Debug/net7.0/refint/DigitalData.Core.Application.dll and b/DigitalData.Core.Application/obj/Debug/net7.0/refint/DigitalData.Core.Application.dll differ diff --git a/DigitalData.Core.Contracts/Application/IServiceMessage.cs b/DigitalData.Core.Contracts/Application/IServiceMessage.cs index b947459..b1983ca 100644 --- a/DigitalData.Core.Contracts/Application/IServiceMessage.cs +++ b/DigitalData.Core.Contracts/Application/IServiceMessage.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; namespace DigitalData.Core.Contracts.Application -{ +{ /// /// Defines a structured format for service messages, categorizing them into success indicators and various types of messages. /// This interface segregates messages into client-facing messages and different levels of logging messages, facilitating targeted communications and diagnostics. @@ -14,6 +14,21 @@ namespace DigitalData.Core.Contracts.Application /// bool IsSuccess { get; set; } + /// + /// Gets or sets the flag that indicates the specific status type of the service operation. + /// This flag helps in categorizing the state of the operation more granularly. + /// + [JsonIgnore] + Enum Flag { get; set; } + + /// + /// Checks if the current service message's flag matches the specified flag. + /// This method is useful for conditional logic based on the status of the operation. + /// + /// The flag to check against the current service message's flag. + /// true if the flags match; otherwise, false. + public bool HasFlag(Enum flag) => Flag.ToString() == flag.ToString(); + /// /// [Obsolete("Deprecated: Use ClientMessages instead.")] /// Gets a collection of messages associated with the service operation. These messages can be error descriptions, diff --git a/DigitalData.Core.Contracts/bin/Debug/net7.0/DigitalData.Core.Contracts.dll b/DigitalData.Core.Contracts/bin/Debug/net7.0/DigitalData.Core.Contracts.dll index b2f6929..66d53ba 100644 Binary files a/DigitalData.Core.Contracts/bin/Debug/net7.0/DigitalData.Core.Contracts.dll and b/DigitalData.Core.Contracts/bin/Debug/net7.0/DigitalData.Core.Contracts.dll differ diff --git a/DigitalData.Core.Contracts/bin/Debug/net7.0/DigitalData.Core.Contracts.pdb b/DigitalData.Core.Contracts/bin/Debug/net7.0/DigitalData.Core.Contracts.pdb index a2e6ca4..a3f0839 100644 Binary files a/DigitalData.Core.Contracts/bin/Debug/net7.0/DigitalData.Core.Contracts.pdb and b/DigitalData.Core.Contracts/bin/Debug/net7.0/DigitalData.Core.Contracts.pdb differ diff --git a/DigitalData.Core.Contracts/obj/Debug/net7.0/DigitalData.Core.Contracts.dll b/DigitalData.Core.Contracts/obj/Debug/net7.0/DigitalData.Core.Contracts.dll index b2f6929..66d53ba 100644 Binary files a/DigitalData.Core.Contracts/obj/Debug/net7.0/DigitalData.Core.Contracts.dll and b/DigitalData.Core.Contracts/obj/Debug/net7.0/DigitalData.Core.Contracts.dll differ diff --git a/DigitalData.Core.Contracts/obj/Debug/net7.0/DigitalData.Core.Contracts.pdb b/DigitalData.Core.Contracts/obj/Debug/net7.0/DigitalData.Core.Contracts.pdb index a2e6ca4..a3f0839 100644 Binary files a/DigitalData.Core.Contracts/obj/Debug/net7.0/DigitalData.Core.Contracts.pdb and b/DigitalData.Core.Contracts/obj/Debug/net7.0/DigitalData.Core.Contracts.pdb differ diff --git a/DigitalData.Core.Contracts/obj/Debug/net7.0/ref/DigitalData.Core.Contracts.dll b/DigitalData.Core.Contracts/obj/Debug/net7.0/ref/DigitalData.Core.Contracts.dll index b627059..7013b5f 100644 Binary files a/DigitalData.Core.Contracts/obj/Debug/net7.0/ref/DigitalData.Core.Contracts.dll and b/DigitalData.Core.Contracts/obj/Debug/net7.0/ref/DigitalData.Core.Contracts.dll differ diff --git a/DigitalData.Core.Contracts/obj/Debug/net7.0/refint/DigitalData.Core.Contracts.dll b/DigitalData.Core.Contracts/obj/Debug/net7.0/refint/DigitalData.Core.Contracts.dll index b627059..7013b5f 100644 Binary files a/DigitalData.Core.Contracts/obj/Debug/net7.0/refint/DigitalData.Core.Contracts.dll and b/DigitalData.Core.Contracts/obj/Debug/net7.0/refint/DigitalData.Core.Contracts.dll differ diff --git a/DigitalData.Core.CultureServices/bin/Debug/net7.0/DigitalData.Core.Contracts.dll b/DigitalData.Core.CultureServices/bin/Debug/net7.0/DigitalData.Core.Contracts.dll index b2f6929..66d53ba 100644 Binary files a/DigitalData.Core.CultureServices/bin/Debug/net7.0/DigitalData.Core.Contracts.dll and b/DigitalData.Core.CultureServices/bin/Debug/net7.0/DigitalData.Core.Contracts.dll differ diff --git a/DigitalData.Core.CultureServices/bin/Debug/net7.0/DigitalData.Core.Contracts.pdb b/DigitalData.Core.CultureServices/bin/Debug/net7.0/DigitalData.Core.Contracts.pdb index a2e6ca4..a3f0839 100644 Binary files a/DigitalData.Core.CultureServices/bin/Debug/net7.0/DigitalData.Core.Contracts.pdb and b/DigitalData.Core.CultureServices/bin/Debug/net7.0/DigitalData.Core.Contracts.pdb differ diff --git a/DigitalData.Core.CultureServices/bin/Debug/net7.0/DigitalData.Core.CultureServices.dll b/DigitalData.Core.CultureServices/bin/Debug/net7.0/DigitalData.Core.CultureServices.dll index abddca6..65db2cd 100644 Binary files a/DigitalData.Core.CultureServices/bin/Debug/net7.0/DigitalData.Core.CultureServices.dll and b/DigitalData.Core.CultureServices/bin/Debug/net7.0/DigitalData.Core.CultureServices.dll differ diff --git a/DigitalData.Core.CultureServices/bin/Debug/net7.0/DigitalData.Core.CultureServices.pdb b/DigitalData.Core.CultureServices/bin/Debug/net7.0/DigitalData.Core.CultureServices.pdb index 83fece5..9b1702c 100644 Binary files a/DigitalData.Core.CultureServices/bin/Debug/net7.0/DigitalData.Core.CultureServices.pdb and b/DigitalData.Core.CultureServices/bin/Debug/net7.0/DigitalData.Core.CultureServices.pdb differ diff --git a/DigitalData.Core.CultureServices/obj/Debug/net7.0/DigitalData.Core.CultureServices.csproj.AssemblyReference.cache b/DigitalData.Core.CultureServices/obj/Debug/net7.0/DigitalData.Core.CultureServices.csproj.AssemblyReference.cache index a928ab3..2de4840 100644 Binary files a/DigitalData.Core.CultureServices/obj/Debug/net7.0/DigitalData.Core.CultureServices.csproj.AssemblyReference.cache and b/DigitalData.Core.CultureServices/obj/Debug/net7.0/DigitalData.Core.CultureServices.csproj.AssemblyReference.cache differ diff --git a/DigitalData.Core.CultureServices/obj/Debug/net7.0/DigitalData.Core.CultureServices.dll b/DigitalData.Core.CultureServices/obj/Debug/net7.0/DigitalData.Core.CultureServices.dll index abddca6..65db2cd 100644 Binary files a/DigitalData.Core.CultureServices/obj/Debug/net7.0/DigitalData.Core.CultureServices.dll and b/DigitalData.Core.CultureServices/obj/Debug/net7.0/DigitalData.Core.CultureServices.dll differ diff --git a/DigitalData.Core.CultureServices/obj/Debug/net7.0/DigitalData.Core.CultureServices.pdb b/DigitalData.Core.CultureServices/obj/Debug/net7.0/DigitalData.Core.CultureServices.pdb index 83fece5..9b1702c 100644 Binary files a/DigitalData.Core.CultureServices/obj/Debug/net7.0/DigitalData.Core.CultureServices.pdb and b/DigitalData.Core.CultureServices/obj/Debug/net7.0/DigitalData.Core.CultureServices.pdb differ diff --git a/DigitalData.Core.Infrastructure/bin/Debug/net7.0/DigitalData.Core.Contracts.dll b/DigitalData.Core.Infrastructure/bin/Debug/net7.0/DigitalData.Core.Contracts.dll index b2f6929..66d53ba 100644 Binary files a/DigitalData.Core.Infrastructure/bin/Debug/net7.0/DigitalData.Core.Contracts.dll and b/DigitalData.Core.Infrastructure/bin/Debug/net7.0/DigitalData.Core.Contracts.dll differ diff --git a/DigitalData.Core.Infrastructure/bin/Debug/net7.0/DigitalData.Core.Contracts.pdb b/DigitalData.Core.Infrastructure/bin/Debug/net7.0/DigitalData.Core.Contracts.pdb index a2e6ca4..a3f0839 100644 Binary files a/DigitalData.Core.Infrastructure/bin/Debug/net7.0/DigitalData.Core.Contracts.pdb and b/DigitalData.Core.Infrastructure/bin/Debug/net7.0/DigitalData.Core.Contracts.pdb differ diff --git a/DigitalData.Core.Infrastructure/bin/Debug/net7.0/DigitalData.Core.Infrastructure.dll b/DigitalData.Core.Infrastructure/bin/Debug/net7.0/DigitalData.Core.Infrastructure.dll index 7fa5d64..5ad1d06 100644 Binary files a/DigitalData.Core.Infrastructure/bin/Debug/net7.0/DigitalData.Core.Infrastructure.dll and b/DigitalData.Core.Infrastructure/bin/Debug/net7.0/DigitalData.Core.Infrastructure.dll differ diff --git a/DigitalData.Core.Infrastructure/bin/Debug/net7.0/DigitalData.Core.Infrastructure.pdb b/DigitalData.Core.Infrastructure/bin/Debug/net7.0/DigitalData.Core.Infrastructure.pdb index de15ccc..bc5c9a4 100644 Binary files a/DigitalData.Core.Infrastructure/bin/Debug/net7.0/DigitalData.Core.Infrastructure.pdb and b/DigitalData.Core.Infrastructure/bin/Debug/net7.0/DigitalData.Core.Infrastructure.pdb differ diff --git a/DigitalData.Core.Infrastructure/obj/Debug/net7.0/DigitalData.Core.Infrastructure.csproj.AssemblyReference.cache b/DigitalData.Core.Infrastructure/obj/Debug/net7.0/DigitalData.Core.Infrastructure.csproj.AssemblyReference.cache index 5a5e23f..71d3ae9 100644 Binary files a/DigitalData.Core.Infrastructure/obj/Debug/net7.0/DigitalData.Core.Infrastructure.csproj.AssemblyReference.cache and b/DigitalData.Core.Infrastructure/obj/Debug/net7.0/DigitalData.Core.Infrastructure.csproj.AssemblyReference.cache differ diff --git a/DigitalData.Core.Infrastructure/obj/Debug/net7.0/DigitalData.Core.Infrastructure.dll b/DigitalData.Core.Infrastructure/obj/Debug/net7.0/DigitalData.Core.Infrastructure.dll index 7fa5d64..5ad1d06 100644 Binary files a/DigitalData.Core.Infrastructure/obj/Debug/net7.0/DigitalData.Core.Infrastructure.dll and b/DigitalData.Core.Infrastructure/obj/Debug/net7.0/DigitalData.Core.Infrastructure.dll differ diff --git a/DigitalData.Core.Infrastructure/obj/Debug/net7.0/DigitalData.Core.Infrastructure.pdb b/DigitalData.Core.Infrastructure/obj/Debug/net7.0/DigitalData.Core.Infrastructure.pdb index de15ccc..bc5c9a4 100644 Binary files a/DigitalData.Core.Infrastructure/obj/Debug/net7.0/DigitalData.Core.Infrastructure.pdb and b/DigitalData.Core.Infrastructure/obj/Debug/net7.0/DigitalData.Core.Infrastructure.pdb differ