1
0
mirror of synced 2024-11-16 06:43:51 +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 f5aa47913f
commit c0d6130d63

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