BusinessRule Enhancement Request - Clearing existing business rules

BusinessRule Enhancement Request - Clearing existing business rules

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


RobKraft posted on Monday, June 21, 2010

I like the changes I see coming for Business Rules, but I don't see reference to one change that we would find helpful.  Could you make RemoveManager in SharedValidationRules public?  Currently we sell our software (Web App) to clients and our software loads rules from the database for each client.  Occasionally a client will change a rule, and they must restart the IIS web app in order for the new rule to take affect.  I just tested performance on the AddInstanceBusinessRules and found that AddInstanceBusinessRules are too slow for us (and that you hope to get rid of them anyway).
If I make RemoveManager public, and have our code immediately reload the businessRules after calling RemoveManager, do you know if that will succeed most of the time?  I realize that a client could be in the midst of using the rules after they were deleted but before they were reloaded, but other than that, do you think it will work?
I don't know if we will be able to make RuleSets in Csla 4.0 work for this scenario.  If so, we would always start with RuleSet 0; but after a change is made, we would want all subsequent new objects to use RuleSet 1, and then RuleSet 2 if another change were made.

Copyright (c) Marimer LLC