![]() |
CSLA .NET 10.0.0
A home for your business logic
|
Base class providing basic authorization rule implementation. More...
Public Member Functions | |
| AuthorizationRuleAsync (AuthorizationActions action) | |
| Creates an instance of the rule. | |
| AuthorizationRuleAsync (AuthorizationActions action, IMemberInfo element) | |
| Creates an instance of the rule. | |
Protected Member Functions | |
| Task | ExecuteAsync (IAuthorizationContext context, CancellationToken ct) |
| Authorization rule implementation. | |
| object? | ReadProperty (object obj, IPropertyInfo propertyInfo) |
| Reads a property's field value. | |
Properties | |
| bool | CacheResult [get, protected set] |
| Gets a value indicating whether the results of this rule can be cached at the business object level. | |
| IMemberInfo? | Element [get, set] |
| Gets the name of the element (property/method) to which this rule is associated. | |
| AuthorizationActions | Action [get, set] |
| Gets the authorization action this rule will enforce. | |
Base class providing basic authorization rule implementation.
|
inline |
Creates an instance of the rule.
| action | Action this rule will enforce. |
|
inline |
Creates an instance of the rule.
| action | Action this rule will enforce. |
| element | Method or property. |
| ArgumentNullException | element is null. |
|
abstractprotected |
Authorization rule implementation.
| context | Rule context object. |
| ct | The cancellation token. |
Implements Csla.Rules.IAuthorizationRuleAsync.
|
inlineprotected |
Reads a property's field value.
| obj | Object on which to call the method. |
| propertyInfo | PropertyInfo object containing property metadata. |
No authorization checks occur when this method is called.
| ArgumentNullException | obj or propertyInfo is null. |
|
getset |
Gets the authorization action this rule will enforce.
Implements Csla.Rules.IAuthorizationRuleBase.
|
getprotected set |
Gets a value indicating whether the results of this rule can be cached at the business object level.
Implements Csla.Rules.IAuthorizationRuleBase.
|
getset |
Gets the name of the element (property/method) to which this rule is associated.
Implements Csla.Rules.IAuthorizationRuleBase.