Click or drag to resize

ConditionalBusinessRule Constructor (FuncRepository, IBusinessRule, FuncRepository, IEnumerableIBusinessEventMask, NullableRuleExecutionPriority, Boolean)

Initializes a new instance of the ConditionalBusinessRule class providing a function to determine if the rule should be registered for a specific repository and function to determine the event masks for a specific repository.

Namespace:  Aloe.EnterpriseOne.Model.Core
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public ConditionalBusinessRule(
	Func<Repository, IBusinessRule> getRepositoryRule,
	Func<Repository, IEnumerable<IBusinessEventMask>> getRepositoryEventMasks,
	Nullable<RuleExecutionPriority> priority = null,
	bool revocable = false
)

Parameters

getRepositoryRule
Type: SystemFuncRepository, IBusinessRule
The get repository rule function.
getRepositoryEventMasks
Type: SystemFuncRepository, IEnumerableIBusinessEventMask
The event masks func.
priority (Optional)
Type: SystemNullableRuleExecutionPriority
The priority.
revocable (Optional)
Type: SystemBoolean
If set to true the rule is revocable.
See Also