Merge pull request #12389 from wocar/dev

Ignore messages without subject in Azure EventBus
pull/12420/head
maliming 3 years ago committed by GitHub
commit eafdce12a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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