1
0
mirror of synced 2024-11-16 06:43:51 +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 988c0a1709
commit 476f69c7fe
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ namespace Tapeti
(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))
.Where(m => m.MemberType == MemberTypes.Method && m.DeclaringType != typeof(object) && !(m as MethodInfo).IsSpecialName)
.Select(m => (MethodInfo)m))
{
var context = new BindingContext(method);

View File

@ -17,7 +17,7 @@ namespace Test
private readonly Visualizer visualizer;
// 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)