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
Syntaxpublic void RegisterRuleFor<TBusinessEvent>(
IBusinessRule businessRule,
Nullable<RuleExecutionPriority> priority = null
)
where TBusinessEvent : BusinessEvent
Public Sub RegisterRuleFor(Of TBusinessEvent As BusinessEvent) (
businessRule As IBusinessRule,
Optional priority As Nullable(Of RuleExecutionPriority) = Nothing
)
public:
generic<typename TBusinessEvent>
where TBusinessEvent : BusinessEvent
void RegisterRuleFor(
IBusinessRule^ businessRule,
Nullable<RuleExecutionPriority^>^ priority = nullptr
)
member RegisterRuleFor :
businessRule : IBusinessRule *
?priority : Nullable<RuleExecutionPriority>
(* Defaults:
let _priority = defaultArg priority null
*)
-> unit when '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