Bug fix in setup nested contexts, Controller was invoked from the outer context
This commit is contained in:
parent
6d88a05862
commit
8b5be4eef5
@ -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