Adding controller types to the dependency container if supported
This commit is contained in:
parent
f5aa47913f
commit
c0d6130d63
@ -141,6 +141,8 @@ namespace Tapeti
|
||||
{
|
||||
var controllerQueueInfo = GetQueueInfo(controller);
|
||||
|
||||
(dependencyResolver as IDependencyContainer)?.RegisterController(controller);
|
||||
|
||||
foreach (var method in controller.GetMembers(BindingFlags.Public | BindingFlags.Instance)
|
||||
.Where(m => m.MemberType == MemberTypes.Method && m.DeclaringType != typeof(object))
|
||||
.Select(m => (MethodInfo)m))
|
||||
|
Loading…
Reference in New Issue
Block a user