BusinessRules.GetAllBrokenRules not returning Warning or Information results, only Errors

BusinessRules.GetAllBrokenRules not returning Warning or Information results, only Errors

Old forum URL: forums.lhotka.net/forums/t/10175.aspx


dhoodwala posted on Thursday, March 17, 2011

Hi All! I'm new to the site, really liking CSLA and the rules engine especially.

I'm running CSLA 4.1. I have a question about GetAllBrokenRules. I'm adding some Warning and Information results, but they are not showing up in the tree when I GetAllBrokenRules. Only errors will show here. If I have only Warning/Info results, the broken rules tree is empty. Based on what I've read in other posts, I believe it should not be this way. What could be going wrong?

Thanks in advance.

Joe

dhoodwala replied on Friday, March 18, 2011

So I looked into the CSLA source code after posting this. GetAllBrokenRules indeed only returns results with severity error. It's coded that way, but I think that has to be a mistake. It would render results of severity Warning or Information completely useless, as there seems to be no other way to get at them later. Am I correct?

Copyright (c) Marimer LLC