Skip to content
Discussion options

You must be logged in to vote

By default an async rule doesn't populate the Target property. This is because an async rule is ... well ... async - and so might be running on another thread, so directly accessing the Target object is dangerous due to possible multithreading sync issues.

If you really do want to interact with Target, in your rule's constructor you need to set a flag indicating that you understand the danger, and want Target to be populated. By doing so, you are accepting that you understand that the object might be manipulated by multiple threads at the same time, and you understand the consequences.

On the other hand, if you just want a property value from the target object, then you should use the Inp…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jhuerta3
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants