9using System.Collections.Generic;
10using System.Threading.Tasks;
Maintains metadata about a property.
Interface defining a business/validation rule implementation.
Task ExecuteAsync(IRuleContext context)
Business or validation rule implementation.
Interface defining a business/validation rule implementation.
bool IsAsync
Gets a value indicating whether the Execute() method will run asynchronous code.
int Priority
Gets the rule priority.
bool ProvideTargetWhenAsync
Gets a value indicating that the Target property should be set even for an async rule (note that usin...
List< Csla.Core.IPropertyInfo > AffectedProperties
Gets a list of properties affected by this rule.
Csla.Core.IPropertyInfo PrimaryProperty
Gets the primary property affected by this rule.
List< Csla.Core.IPropertyInfo > InputProperties
Gets a list of secondary property values to be supplied to the rule when it is executed.
RunModes RunMode
Gets the context in which the rule is allowed to execute.
string RuleName
Gets a unique rule:// URI for the specific instance of the rule within the context of the business ob...
Interface defining a business/validation rule implementation.
void Execute(IRuleContext context)
Business or validation rule implementation.
Context information provided to a business rule when it is invoked.
RunModes
Flags enum to define when rule is allowed or denied to run
@ DenyCheckRules
Deny rule from running in CheckRules
@ DenyAsAffectedProperty
Deny rule from running as AffectedProperties from another rule.
@ Default
Default value, rule can run in any context
@ DenyOnServerSidePortal
Deny rule from running on serverside portal