Class RuleTypeScanner
Assembly scanner that finds fluent rule classes.
public class RuleTypeScanner : IRuleTypeScanner
- Inheritance
-
RuleTypeScanner
- Implements
- Inherited Members
Methods
Assembly(params Assembly[])
Finds rule types in the specified assemblies.
public IRuleTypeScanner Assembly(params Assembly[] assemblies)
Parameters
assemblies
Assembly[]Assemblies to scan.
Returns
- IRuleTypeScanner
Rule type scanner to continue scanning specification.
AssemblyOf(Type)
Finds rule types in the assembly of the specified type.
public IRuleTypeScanner AssemblyOf(Type type)
Parameters
type
TypeType, whose assembly to scan.
Returns
- IRuleTypeScanner
Rule type scanner to continue scanning specification.
AssemblyOf<T>()
Finds rule types in the assembly of the specified type.
public IRuleTypeScanner AssemblyOf<T>()
Returns
- IRuleTypeScanner
Rule type scanner to continue scanning specification.
Type Parameters
T
Type, whose assembly to scan.
GetRuleTypes()
Retrieves found types.
public Type[] GetRuleTypes()
Returns
- Type[]
Rule types.
IsRuleType(Type)
Determines if a given CLR type is a rule type.
public static bool IsRuleType(Type type)
Parameters
type
TypeType to check.
Returns
- bool
Result of the check.
NestedTypes(bool)
Enables/disables discovery of nested rule classes. Default is off.
public IRuleTypeScanner NestedTypes(bool include = true)
Parameters
include
boolInclude nested types if
true
, don't include otherwise.
Returns
- IRuleTypeScanner
Rule type scanner to continue scanning specification.
PrivateTypes(bool)
Enables/disables discovery of private rule classes. Default is off.
public IRuleTypeScanner PrivateTypes(bool include = true)
Parameters
include
boolInclude private types if
true
, don't include otherwise.
Returns
- IRuleTypeScanner
Rule type scanner to continue scanning specification.
Type(params Type[])
Finds rule types in the specifies types.
public IRuleTypeScanner Type(params Type[] types)
Parameters
types
Type[]Types to scan.
Returns
- IRuleTypeScanner
Rule type scanner to continue scanning specification.