1
0
mirror of synced 2024-11-16 14:53:50 +00:00

BUG FIX: getters and setters of propperties are not recognised as Message handlers

This commit is contained in:
Menno van Lavieren 2017-07-24 10:21:34 +02:00
parent cf53a1e6b1
commit a14b4378bc
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ namespace Tapeti
(dependencyResolver as IDependencyContainer)?.RegisterController(controller); (dependencyResolver as IDependencyContainer)?.RegisterController(controller);
foreach (var method in controller.GetMembers(BindingFlags.Public | BindingFlags.Instance) foreach (var method in controller.GetMembers(BindingFlags.Public | BindingFlags.Instance)
.Where(m => m.MemberType == MemberTypes.Method && m.DeclaringType != typeof(object)) .Where(m => m.MemberType == MemberTypes.Method && m.DeclaringType != typeof(object) && !(m as MethodInfo).IsSpecialName)
.Select(m => (MethodInfo)m)) .Select(m => (MethodInfo)m))
{ {
var context = new BindingContext(method); var context = new BindingContext(method);

View File

@ -17,7 +17,7 @@ namespace Test
private readonly Visualizer visualizer; private readonly Visualizer visualizer;
// Public properties are automatically stored and retrieved while in a flow // Public properties are automatically stored and retrieved while in a flow
public Guid StateTestGuid; public Guid StateTestGuid { get; set; }
public MarcoController(IPublisher publisher, IFlowProvider flowProvider, Visualizer visualizer) public MarcoController(IPublisher publisher, IFlowProvider flowProvider, Visualizer visualizer)