Fix queue worker workflow selector predicate

This commit is contained in:
Sipke Schoorstra 2021-01-09 12:51:00 +01:00
parent f98d31842e
commit 9bfe7d474a

View file

@ -42,7 +42,7 @@ namespace Elsa.Activities.AzureServiceBus.Services
using var scope = _serviceProvider.CreateScope();
var workflowQueue = scope.ServiceProvider.GetRequiredService<IWorkflowQueue>();
await workflowQueue.EnqueueWorkflowsAsync<MessageReceivedTrigger>(
x => x.QueueName == _messageReceiver.Path && (string.IsNullOrWhiteSpace(x.CorrelationId) || x.CorrelationId == message.CorrelationId),
x => x.QueueName == _messageReceiver.Path && (string.Equals(x.CorrelationId, message.CorrelationId)),
message, message.CorrelationId,
cancellationToken: cancellationToken);
}