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
1 changed files with 1 additions and 3 deletions

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
}