Browse Source

Merge pull request #12389 from wocar/dev

Ignore messages without subject in Azure EventBus
pull/12420/head
maliming 4 years ago
committed by GitHub
parent
commit
eafdce12a9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      framework/src/Volo.Abp.EventBus.Azure/Volo/Abp/EventBus/Azure/AzureDistributedEventBus.cs

4
framework/src/Volo.Abp.EventBus.Azure/Volo/Abp/EventBus/Azure/AzureDistributedEventBus.cs

@ -71,6 +71,10 @@ public class AzureDistributedEventBus : DistributedEventBusBase, ISingletonDepen
private async Task ProcessEventAsync(ServiceBusReceivedMessage message)
{
var eventName = message.Subject;
if (eventName == null)
{
return;
}
var eventType = _eventTypes.GetOrDefault(eventName);
if (eventType == null)
{

Loading…
Cancel
Save