1
0
mirror of synced 2024-11-05 02:59:16 +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 6d88a05862
commit 8b5be4eef5
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)}");
}
}