Browse Source

Merge pull request #174 from colinin/4.0

fix bug: Published notifications can never be processed
pull/177/head
cKey 5 years ago
committed by GitHub
parent
commit
3e85b34aff
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      aspnet-core/services/messages/LINGYUN.Abp.MessageService.HttpApi.Host/EventBus/Distributed/NotificationEventHandler.cs

2
aspnet-core/services/messages/LINGYUN.Abp.MessageService.HttpApi.Host/EventBus/Distributed/NotificationEventHandler.cs

@ -93,7 +93,7 @@ namespace LINGYUN.Abp.MessageService.EventBus.Distributed
// 当只有一个消费者订阅时,事件总线会认为消息已经处理,从而发布Ack指令,从消息队列中移除此消息 // 当只有一个消费者订阅时,事件总线会认为消息已经处理,从而发布Ack指令,从消息队列中移除此消息
// 可能造成通知数据丢失 // 可能造成通知数据丢失
var application = Options.Application ?? "Abp"; var application = Options.Application ?? "Abp";
if (application.Equals(Options.Application)) if (!string.Equals(application, eventData.Application, StringComparison.InvariantCultureIgnoreCase))
{ {
// 不是当前监听应用的消息不做处理 // 不是当前监听应用的消息不做处理
return; return;

Loading…
Cancel
Save