1
0
mirror of synced 2024-11-22 01:13:49 +00:00

Adding controller types to the dependency container if supported

This commit is contained in:
Menno van Lavieren 2017-07-07 11:38:34 +02:00
parent 06654b099a
commit 80b61db317

View File

@ -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))