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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
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) |
|
|
|
{ |
|
|
|
|