From c869d2fadcaff900ff25ad65aef3abfb94615e5b Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Sun, 27 Dec 2020 16:25:17 +0800 Subject: [PATCH] fix bug: Published notifications can never be processed --- .../EventBus/Distributed/NotificationEventHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnet-core/services/messages/LINGYUN.Abp.MessageService.HttpApi.Host/EventBus/Distributed/NotificationEventHandler.cs b/aspnet-core/services/messages/LINGYUN.Abp.MessageService.HttpApi.Host/EventBus/Distributed/NotificationEventHandler.cs index 42c217b7e..8152d17dd 100644 --- a/aspnet-core/services/messages/LINGYUN.Abp.MessageService.HttpApi.Host/EventBus/Distributed/NotificationEventHandler.cs +++ b/aspnet-core/services/messages/LINGYUN.Abp.MessageService.HttpApi.Host/EventBus/Distributed/NotificationEventHandler.cs @@ -93,7 +93,7 @@ namespace LINGYUN.Abp.MessageService.EventBus.Distributed // 当只有一个消费者订阅时,事件总线会认为消息已经处理,从而发布Ack指令,从消息队列中移除此消息 // 可能造成通知数据丢失 var application = Options.Application ?? "Abp"; - if (application.Equals(Options.Application)) + if (!string.Equals(application, eventData.Application, StringComparison.InvariantCultureIgnoreCase)) { // 不是当前监听应用的消息不做处理 return;