From 951b5f53457f3d5a4aa165f922041ccb03e91a06 Mon Sep 17 00:00:00 2001 From: maliming Date: Sat, 16 Aug 2025 16:24:10 +0800 Subject: [PATCH] Use unproxied handler type in `EventBusBase` --- .../src/Volo.Abp.EventBus/Volo/Abp/EventBus/EventBusBase.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/EventBusBase.cs b/framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/EventBusBase.cs index 231b4c7a0f..c8ce733b22 100644 --- a/framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/EventBusBase.cs +++ b/framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/EventBusBase.cs @@ -7,8 +7,10 @@ using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Volo.Abp.Collections; +using Volo.Abp.DynamicProxy; using Volo.Abp.EventBus.Distributed; using Volo.Abp.MultiTenancy; +using Volo.Abp.Reflection; using Volo.Abp.Uow; namespace Volo.Abp.EventBus; @@ -203,7 +205,7 @@ public abstract class EventBusBase : IEventBus { try { - var handlerType = eventHandlerWrapper.EventHandler.GetType(); + var handlerType = ProxyHelper.GetUnProxiedType(eventHandlerWrapper.EventHandler); if (inboxConfig?.HandlerSelector != null && !inboxConfig.HandlerSelector(handlerType))