BUG FIX: getters and setters of propperties are not recognised as Message handlers
This commit is contained in:
parent
988c0a1709
commit
476f69c7fe
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user