Interface IRuleActivator
Rule activator that instantiates rules based on the CLR types.
Default activator uses reflection activator.
An instance of IRuleActivator
can be assigned to Activator,
so that all rule instantiation requests are delegated to the rule activator.
public interface IRuleActivator
Methods
Activate(Type)
Creates rule's instances from a CLR type.
IEnumerable<Rule> Activate(Type type)
Parameters
type
TypeRule CLR type.
Returns
- IEnumerable<Rule>
Rule instances.
Remarks
The same rule type may be instantiated multiple times with different parameters. Each instance is considered as separate rule, and should have a unique name.