-
What is the best approach for implementing a per-property authorization rule that depends on the result of an async, lazy-loaded property? Here's my suggestion: [Serializable] public sealed class Parent : BusinessBase<Parent> { public static readonly PropertyInfo<string> NameProperty...
-
When I create a new instance of a business object, the authorization rules do not run. I have a custom authorization rule that changes access to a property based on the state of another property. This rule runs as expected when fetching an existing object and editing it, but it seems like the authorization...
-
In our WPF application users can log out and then log in into the system. With current implementation Csla.Xaml.ApplicationContextManager we sometime have interesting problem. I would like to check if anyone had the same problem before, or have any other comments. Here is the problem. ApplicationContextManager...
-
There is support for this - you just have to follow some basic guidelines. BusinessRules at Object level must have ProperyProperty = null. AuthorizationRules for Static methods must have Member = null (CanGetObject, CanCreateObject, CanEditObject, CanDeleteObject) BusinessRules for a Property must have...
-
Hi everybody, in a SL4 Project using CSLA 4.1 I have a BusinessBase class containing 2 Methods: public void doWork(EventHandler<DataPortalResult<doWorkCommand>> callback) public static void doWork(int Id, EventHandler<DataPortalResult<doWorkCommand>> callback) I would like to...
-
I'm very new to CSLA but am thrilled to have found it and have started working through Rockford's C# 2008 Business Objects book. I have a design question that I'm hoping others with more experience can chime in on, especially as thoughts on how using CSLA can help me better refine the design...
-
I've upgraded WebForms project to use Csla 4. The business layer seems fine mostly, all the tests have passed and I'm fixing minor things with how BOs are build (private backing fields not specifying that in relationship type, etc). One thing I'm stumped on is the handling of the ApplicationContext...
-
Hello all. I'm using Authorization Rules in my Business Objects but when any Authorization Rule is broken the message provided on the exception do not fits my needs. I was reviewing the implementation of the DataPortal class and CSLA throws a Security Exception and loads the exception message from...
-
Why there is no ExecuteObject/ExecuteCommand per type authorization rule/action? I can see that AddObjectAuthorizationRules() is being call... Thanks Ivan UPDATE : ok, after looking through csla source, I figured out that EditObject permission is being checked while executing DataPortal_Execute method...
-
Thanks Rocky. I ended up creating an aggregate authorization rule that I can stuff any number of sub rules into. I also created a CanEditObject rule that I put in each aggregate rule for each property in addition to the other rule(s) for each property. We'll wait and see what kind of performance...