Adding controller types to the dependency container if supported
This commit is contained in:
parent
06654b099a
commit
80b61db317
@ -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