Hello
We have a class that contains property X with some expensive rules associated to it. We want all rules to fire if the value of property X gets changed, but we would like to suppress some of its rule if the rules are being fired due to an explicit call to ‘CheckRules(X)’ or due to property X having dependencies with other properties.
In other words, we need context to know why are the businesses rules being fired so we can determine whether to run them or not.
I took a quick look at the business rule runtime information and couldn’t find anything that could give me that context. Am I missing something or is it not possible to do what we want to do.
By the way, we already have a work around that solves our issue but I was wondering if I am missing something and there is a formal way of doing what we are doing the proper way.
We are currently using CSLA 4.2.2.0
Thanks.