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