Click or drag to resize

EditableRepositoryRegisterRuleForTBusinessEvent Method

Registers the rule for all events of the specified event type.

Namespace:  Aloe.SystemFrameworks.Domain
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public void RegisterRuleFor<TBusinessEvent>(
	IBusinessRule businessRule,
	Nullable<RuleExecutionPriority> priority = null
)
where TBusinessEvent : BusinessEvent

Parameters

businessRule
Type: Aloe.SystemFrameworks.Domain.BusinessLogicIBusinessRule
The business rule.
priority (Optional)
Type: SystemNullableRuleExecutionPriority
The priority.

Type Parameters

TBusinessEvent
The type of the business event.
See Also