Den Fehler in der WithFlag-Methode behoben und die Enum-Übersetzung integriert.
This commit is contained in:
@@ -12,13 +12,12 @@ namespace DigitalData.Core.Application
|
||||
{
|
||||
#region Flag
|
||||
/// <summary>
|
||||
/// Sets the specified flag on the service message, allowing for detailed categorization of the message based on specific conditions or statuses.
|
||||
/// This method supports fluent chaining by returning the modified service message instance.
|
||||
/// Sets the specified flag on the service message or result, allowing for the categorization of the message based on specific conditions or statuses.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of IServiceMessage.</typeparam>
|
||||
/// <param name="serviceMessage">The service message instance to modify.</param>
|
||||
/// <param name="flag">The flag to set, indicating a specific condition or status.</param>
|
||||
/// <returns>The modified service message instance, facilitating fluent chaining of methods.</returns>
|
||||
/// <returns>The service message instance with the updated flag, facilitating fluent chaining of methods.</returns>
|
||||
public static T WithFlag<T>(this T serviceMessage, Enum flag) where T : IServiceMessage
|
||||
{
|
||||
serviceMessage.Flags.Add(flag);
|
||||
@@ -26,27 +25,25 @@ namespace DigitalData.Core.Application
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks if the service message has a flag indicating a security breach.
|
||||
/// This is useful for identifying messages related to security concerns for prompt and specific handling.
|
||||
/// Determines whether the service message has a flag indicating a security breach.
|
||||
/// </summary>
|
||||
/// <param name="serviceMessage">The service message instance to check.</param>
|
||||
/// <returns>True if the service message contains the security breach flag; otherwise, false.</returns>
|
||||
/// <returns>True if the service message has the security breach flag; otherwise, false.</returns>
|
||||
public static bool HasSecurityBreachFlag(this IServiceMessage serviceMessage) => serviceMessage.HasFlag(Flag.SecurityBreach);
|
||||
|
||||
/// <summary>
|
||||
/// Checks if the service message has a flag indicating a data integrity issue.
|
||||
/// This method is essential for operations where data accuracy and integrity are critical.
|
||||
/// Determines whether the service message has a flag indicating a data integrity issue.
|
||||
/// </summary>
|
||||
/// <param name="serviceMessage">The service message instance to check.</param>
|
||||
/// <returns>True if the service message contains the data integrity issue flag; otherwise, false.</returns>
|
||||
/// <returns>True if the service message has the data integrity issue flag; otherwise, false.</returns>
|
||||
public static bool HasDataIntegrityIssueFlag(this IServiceMessage serviceMessage) => serviceMessage.HasFlag(Flag.DataIntegrityIssue);
|
||||
|
||||
/// <summary>
|
||||
/// Checks if the service message has a flag indicating either a security breach or a data integrity issue, or both.
|
||||
/// This flag is critical when it is uncertain whether the problem pertains to security or data integrity, advising that data integrity checks should be prioritized.
|
||||
/// Determines whether the service message has a flag indicating either a security breach or a data integrity issue, or both.
|
||||
/// This flag is used when it is not sure whether the problem is security or data integrity. In this case, data integrity should be checked first.
|
||||
/// </summary>
|
||||
/// <param name="serviceMessage">The service message instance to check.</param>
|
||||
/// <returns>True if the service message contains the flag for either or both issues; otherwise, false.</returns>
|
||||
/// <returns>True if the service message has the flag indicating either or both issues; otherwise, false.</returns>
|
||||
public static bool HasSecurityBreachOrDataIntegrityFlag(this IServiceMessage serviceMessage) => serviceMessage.HasFlag(Flag.SecurityBreachOrDataIntegrity);
|
||||
#endregion
|
||||
|
||||
|
||||
43
DigitalData.Core.Application/To.cs
Normal file
43
DigitalData.Core.Application/To.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
namespace DigitalData.Core.Application
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the destination of a message.
|
||||
/// </summary>
|
||||
public enum To
|
||||
{
|
||||
/// <summary>
|
||||
/// Indicates that the message is intended for the client.
|
||||
/// </summary>
|
||||
Client,
|
||||
|
||||
/// <summary>
|
||||
/// Indicates that the message is intended for tracing purposes.
|
||||
/// </summary>
|
||||
Trace,
|
||||
|
||||
/// <summary>
|
||||
/// Indicates that the message is intended for debugging purposes.
|
||||
/// </summary>
|
||||
Debug,
|
||||
|
||||
/// <summary>
|
||||
/// Indicates that the message is informational.
|
||||
/// </summary>
|
||||
Information,
|
||||
|
||||
/// <summary>
|
||||
/// Indicates that the message is a warning.
|
||||
/// </summary>
|
||||
Warning,
|
||||
|
||||
/// <summary>
|
||||
/// Indicates that the message represents an error.
|
||||
/// </summary>
|
||||
Error,
|
||||
|
||||
/// <summary>
|
||||
/// Indicates that the message represents a critical issue.
|
||||
/// </summary>
|
||||
Critical
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -45,18 +45,3 @@ E:\TekH\Visual Studio\DDWeb\WebCoreModules\DigitalData.Core.Application\obj\Debu
|
||||
E:\TekH\Visual Studio\DDWeb\WebCoreModules\DigitalData.Core.Application\obj\Debug\net7.0\refint\DigitalData.Core.Application.dll
|
||||
E:\TekH\Visual Studio\DDWeb\WebCoreModules\DigitalData.Core.Application\obj\Debug\net7.0\DigitalData.Core.Application.pdb
|
||||
E:\TekH\Visual Studio\DDWeb\WebCoreModules\DigitalData.Core.Application\obj\Debug\net7.0\ref\DigitalData.Core.Application.dll
|
||||
E:\TekH\Visual Studio\WebCoreModules\DigitalData.Core.Application\bin\Debug\net7.0\DigitalData.Core.Application.deps.json
|
||||
E:\TekH\Visual Studio\WebCoreModules\DigitalData.Core.Application\bin\Debug\net7.0\DigitalData.Core.Application.dll
|
||||
E:\TekH\Visual Studio\WebCoreModules\DigitalData.Core.Application\bin\Debug\net7.0\DigitalData.Core.Application.pdb
|
||||
E:\TekH\Visual Studio\WebCoreModules\DigitalData.Core.Application\bin\Debug\net7.0\DigitalData.Core.Contracts.dll
|
||||
E:\TekH\Visual Studio\WebCoreModules\DigitalData.Core.Application\bin\Debug\net7.0\DigitalData.Core.Contracts.pdb
|
||||
E:\TekH\Visual Studio\WebCoreModules\DigitalData.Core.Application\obj\Debug\net7.0\DigitalData.Core.Application.csproj.AssemblyReference.cache
|
||||
E:\TekH\Visual Studio\WebCoreModules\DigitalData.Core.Application\obj\Debug\net7.0\DigitalData.Core.Application.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\TekH\Visual Studio\WebCoreModules\DigitalData.Core.Application\obj\Debug\net7.0\DigitalData.Core.Application.AssemblyInfoInputs.cache
|
||||
E:\TekH\Visual Studio\WebCoreModules\DigitalData.Core.Application\obj\Debug\net7.0\DigitalData.Core.Application.AssemblyInfo.cs
|
||||
E:\TekH\Visual Studio\WebCoreModules\DigitalData.Core.Application\obj\Debug\net7.0\DigitalData.Core.Application.csproj.CoreCompileInputs.cache
|
||||
E:\TekH\Visual Studio\WebCoreModules\DigitalData.Core.Application\obj\Debug\net7.0\DigitalData.Core.Application.csproj.CopyComplete
|
||||
E:\TekH\Visual Studio\WebCoreModules\DigitalData.Core.Application\obj\Debug\net7.0\DigitalData.Core.Application.dll
|
||||
E:\TekH\Visual Studio\WebCoreModules\DigitalData.Core.Application\obj\Debug\net7.0\refint\DigitalData.Core.Application.dll
|
||||
E:\TekH\Visual Studio\WebCoreModules\DigitalData.Core.Application\obj\Debug\net7.0\DigitalData.Core.Application.pdb
|
||||
E:\TekH\Visual Studio\WebCoreModules\DigitalData.Core.Application\obj\Debug\net7.0\ref\DigitalData.Core.Application.dll
|
||||
|
||||
@@ -14,15 +14,11 @@
|
||||
"outputPath": "E:\\TekH\\Visual Studio\\WebCoreModules\\DigitalData.Core.Application\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"D:\\ProgramFiles\\DevExpress 21.2\\Components\\Offline Packages",
|
||||
"D:\\ProgramFiles\\DevExpress 22.1\\Components\\Offline Packages",
|
||||
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
|
||||
"D:\\ProgramFiles\\DevExpress 21.2\\Components\\Offline Packages"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\tekh\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\DevExpress 19.2.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\DevExpress 21.2.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\DevExpress 22.1.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
@@ -30,10 +26,7 @@
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"D:\\ProgramFiles\\DevExpress 19.2\\Components\\System\\Components\\Packages": {},
|
||||
"D:\\ProgramFiles\\DevExpress 21.2\\Components\\System\\Components\\Packages": {},
|
||||
"D:\\ProgramFiles\\DevExpress 22.1\\Components\\System\\Components\\Packages": {},
|
||||
"http://localhost:5000/v3/index.json": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
@@ -50,6 +43,11 @@
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
@@ -101,7 +99,7 @@
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.202\\RuntimeIdentifierGraph.json"
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.200\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -115,15 +113,11 @@
|
||||
"outputPath": "E:\\TekH\\Visual Studio\\WebCoreModules\\DigitalData.Core.Contracts\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"D:\\ProgramFiles\\DevExpress 21.2\\Components\\Offline Packages",
|
||||
"D:\\ProgramFiles\\DevExpress 22.1\\Components\\Offline Packages",
|
||||
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
|
||||
"D:\\ProgramFiles\\DevExpress 21.2\\Components\\Offline Packages"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\tekh\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\DevExpress 19.2.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\DevExpress 21.2.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\DevExpress 22.1.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
@@ -131,10 +125,7 @@
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"D:\\ProgramFiles\\DevExpress 19.2\\Components\\System\\Components\\Packages": {},
|
||||
"D:\\ProgramFiles\\DevExpress 21.2\\Components\\System\\Components\\Packages": {},
|
||||
"D:\\ProgramFiles\\DevExpress 22.1\\Components\\System\\Components\\Packages": {},
|
||||
"http://localhost:5000/v3/index.json": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
@@ -147,6 +138,11 @@
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
@@ -190,7 +186,7 @@
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.202\\RuntimeIdentifierGraph.json"
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.200\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,14 +5,12 @@
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\tekh\.nuget\packages\;D:\ProgramFiles\DevExpress 21.2\Components\Offline Packages;D:\ProgramFiles\DevExpress 22.1\Components\Offline Packages;C:\Program Files\dotnet\sdk\NuGetFallbackFolder</NuGetPackageFolders>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\tekh\.nuget\packages\;D:\ProgramFiles\DevExpress 21.2\Components\Offline Packages</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.5.0</NuGetToolVersion>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.9.1</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\tekh\.nuget\packages\" />
|
||||
<SourceRoot Include="D:\ProgramFiles\DevExpress 21.2\Components\Offline Packages\" />
|
||||
<SourceRoot Include="D:\ProgramFiles\DevExpress 22.1\Components\Offline Packages\" />
|
||||
<SourceRoot Include="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1505,9 +1505,7 @@
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\tekh\\.nuget\\packages\\": {},
|
||||
"D:\\ProgramFiles\\DevExpress 21.2\\Components\\Offline Packages": {},
|
||||
"D:\\ProgramFiles\\DevExpress 22.1\\Components\\Offline Packages": {},
|
||||
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {}
|
||||
"D:\\ProgramFiles\\DevExpress 21.2\\Components\\Offline Packages": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
@@ -1519,15 +1517,11 @@
|
||||
"outputPath": "E:\\TekH\\Visual Studio\\WebCoreModules\\DigitalData.Core.Application\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"D:\\ProgramFiles\\DevExpress 21.2\\Components\\Offline Packages",
|
||||
"D:\\ProgramFiles\\DevExpress 22.1\\Components\\Offline Packages",
|
||||
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
|
||||
"D:\\ProgramFiles\\DevExpress 21.2\\Components\\Offline Packages"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\tekh\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\DevExpress 19.2.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\DevExpress 21.2.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\DevExpress 22.1.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
@@ -1535,10 +1529,7 @@
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"D:\\ProgramFiles\\DevExpress 19.2\\Components\\System\\Components\\Packages": {},
|
||||
"D:\\ProgramFiles\\DevExpress 21.2\\Components\\System\\Components\\Packages": {},
|
||||
"D:\\ProgramFiles\\DevExpress 22.1\\Components\\System\\Components\\Packages": {},
|
||||
"http://localhost:5000/v3/index.json": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
@@ -1555,6 +1546,11 @@
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
@@ -1606,16 +1602,8 @@
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.202\\RuntimeIdentifierGraph.json"
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.200\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"logs": [
|
||||
{
|
||||
"code": "NU1803",
|
||||
"level": "Warning",
|
||||
"warningLevel": 1,
|
||||
"message": "You are running the 'restore' operation with an 'HTTP' source, 'http://localhost:5000/v3/index.json'. Non-HTTPS access will be removed in a future version. Consider migrating to an 'HTTPS' source."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user