1
0
mirror of synced 2024-12-22 09:13:07 +01:00

Fixed validation for converge methods

This commit is contained in:
Mark van Renswoude 2021-07-18 14:39:18 +02:00
parent d1048b0959
commit 51ebfd62b4

View File

@ -104,9 +104,7 @@ namespace Tapeti.Flow.Default
if (convergeMethodInfo == null)
throw new InvalidDataException($"Flow ID {flowId} references converge method '{metadata.ConvergeMethodName}' which no longer exists (continuation Id = {continuationId})");
var convergeBinding = config.Bindings.ForMethod(convergeMethodInfo);
if (convergeBinding == null)
throw new InvalidDataException($"Flow ID {flowId} references converge method '{metadata.ConvergeMethodName}' which no longer has a binding as a message handler (continuation Id = {continuationId})");
// Converge methods are not message handlers themselves
}