the "Kosher" way to register custom authorization rules

the "Kosher" way to register custom authorization rules

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


breakphreak posted on Thursday, July 29, 2010

hey there :)

Just discovered in the source a static method, called "AddObjectAuthorizationRules()" that every business object type (for example) might implement. I find it very useful for the following pattern (problem description will follow):

 

 

Implementation details:

 

 

Explanation:

 

 

Possible solutions (both not very "Kosher"):

 

 

As you might see, neither option is very exciting and looks more like a workaround. Assumed you've considered issues like mine, when designing the cool library, it would be great to hear a bit of advice regarding the better solution that fully complies to the Csla state of mind.

 

Update: continued here: http://forums.lhotka.net/forums/p/9293/44087.aspx#44087

 

Copyright (c) Marimer LLC