Bug fix in setup nested contexts, Controller was invoked from the outer context
This commit is contained in:
parent
de9f4ae10b
commit
ecdbc801a3
@ -133,7 +133,7 @@ namespace Tapeti.Connection
|
||||
|
||||
addHandler(async (c, next) =>
|
||||
{
|
||||
await binding.Invoke(context, message);
|
||||
await binding.Invoke(c, message);
|
||||
});
|
||||
|
||||
firstCaller.Call(context)
|
||||
|
@ -111,7 +111,7 @@ namespace Tapeti
|
||||
else if (middleware is IPublishMiddleware)
|
||||
Use((IPublishMiddleware)middleware);
|
||||
else
|
||||
throw new ArgumentException($"Unsupported middleware implementation: {middleware.GetType().Name}");
|
||||
throw new ArgumentException($"Unsupported middleware implementation: {(middleware == null ? "null" : middleware.GetType().Name)}");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user