1
0
mirror of synced 2024-11-16 06:43:51 +00:00

Bug fix in setup nested contexts, Controller was invoked from the outer context

This commit is contained in:
Menno van Lavieren 2017-07-10 13:13:04 +02:00
parent de9f4ae10b
commit ecdbc801a3
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ namespace Tapeti.Connection
addHandler(async (c, next) =>
{
await binding.Invoke(context, message);
await binding.Invoke(c, message);
});
firstCaller.Call(context)

View File

@ -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)}");
}
}