9using System.Collections.Generic;
13using System.ComponentModel;
14using System.Threading;
19 [System.Diagnostics.DebuggerStepThrough]
33 base.AddBusinessRules();
49 : base(primaryProperty)
57 var bw =
new System.ComponentModel.BackgroundWorker();
58 bw.DoWork += (o, e) =>
60 throw new InvalidOperationException();
62 bw.RunWorkerCompleted += (o, e) =>
This is the base class from which most business objects will be derived.
Maintains metadata about a property.
List< Csla.Core.IPropertyInfo > InputProperties
Gets a list of secondary property values to be supplied to the rule when it is executed.
Base class used to create business and validation rules.
override bool IsAsync
Gets a value indicating whether the rule will run on a background thread.
Tracks the business rules for a business object.
List< string > CheckRules()
Invokes all rules for the business type.
void AddRule(IBusinessRuleBase rule)
Associates a business rule with the business object.
BrokenRulesCollection GetBrokenRules()
Gets the broken rules list.
InvalidAsyncValidationRule(Csla.Core.IPropertyInfo primaryProperty)
override void Execute(IRuleContext context)
Business or validation rule implementation.
new Rules.BrokenRulesCollection GetBrokenRules()
override void AddBusinessRules()
static PropertyInfo< string > NameProperty
Maintains metadata about a property.
Context information provided to a business rule when it is invoked.
void AddErrorResult(string description)
Add a Error severity result to the Results list.
void Complete()
Indicates that the rule processing is complete, so CSLA .NET will process the Results list.