From b747787b8754d62c4dafcdf01103fa700039161b Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Wed, 15 Apr 2026 22:36:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor(core):=20=E6=9B=B4=E6=96=B0=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=BD=AC=E5=8F=91=E5=99=A8=E5=92=8C=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=9A=84=E5=91=BD=E5=90=8D=E7=A9=BA=E9=97=B4?= =?UTF-8?q?=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 TypeForwarders.cs 中添加 Cqrs 相关命名空间引用 - 在 CqrsPublicNamespaceCompatibilityTests.cs 中同步更新命名空间导入 - 在 CqrsTestRuntime.cs 中补充 Command 命名空间引用 - 确保所有测试运行时环境的命名空间一致性 --- .../Cqrs/CqrsPublicNamespaceCompatibilityTests.cs | 4 ++++ GFramework.Core/Properties/TypeForwarders.cs | 4 ++++ GFramework.Tests.Common/CqrsTestRuntime.cs | 1 + 3 files changed, 9 insertions(+) diff --git a/GFramework.Core.Tests/Cqrs/CqrsPublicNamespaceCompatibilityTests.cs b/GFramework.Core.Tests/Cqrs/CqrsPublicNamespaceCompatibilityTests.cs index 20470dd8..40506524 100644 --- a/GFramework.Core.Tests/Cqrs/CqrsPublicNamespaceCompatibilityTests.cs +++ b/GFramework.Core.Tests/Cqrs/CqrsPublicNamespaceCompatibilityTests.cs @@ -3,6 +3,10 @@ using GFramework.Cqrs.Abstractions.Cqrs.Command; using GFramework.Cqrs.Abstractions.Cqrs.Notification; using GFramework.Cqrs.Abstractions.Cqrs.Query; using GFramework.Cqrs.Abstractions.Cqrs.Request; +using GFramework.Cqrs.Command; +using GFramework.Cqrs.Notification; +using GFramework.Cqrs.Query; +using GFramework.Cqrs.Request; namespace GFramework.Core.Tests.Cqrs; diff --git a/GFramework.Core/Properties/TypeForwarders.cs b/GFramework.Core/Properties/TypeForwarders.cs index df43a698..2c260462 100644 --- a/GFramework.Core/Properties/TypeForwarders.cs +++ b/GFramework.Core/Properties/TypeForwarders.cs @@ -1,5 +1,9 @@ using System.Runtime.CompilerServices; using GFramework.Core.Abstractions.Logging; +using GFramework.Cqrs.Command; +using GFramework.Cqrs.Notification; +using GFramework.Cqrs.Query; +using GFramework.Cqrs.Request; [assembly: TypeForwardedTo(typeof(LoggerFactoryResolver))] [assembly: TypeForwardedTo(typeof(CommandBase<,>))] diff --git a/GFramework.Tests.Common/CqrsTestRuntime.cs b/GFramework.Tests.Common/CqrsTestRuntime.cs index aec866df..e7c971db 100644 --- a/GFramework.Tests.Common/CqrsTestRuntime.cs +++ b/GFramework.Tests.Common/CqrsTestRuntime.cs @@ -7,6 +7,7 @@ using GFramework.Core.Abstractions.Logging; using GFramework.Core.Ioc; using GFramework.Cqrs; using GFramework.Cqrs.Abstractions.Cqrs; +using GFramework.Cqrs.Command; namespace GFramework.Tests.Common;