Table of Contents

Interface IRuleTypeScanner

Namespace
NRules.Fluent
Assembly
NRules.Fluent.dll

Assembly scanner that finds fluent rule classes.

public interface IRuleTypeScanner

Methods

Assembly(params Assembly[])

Finds rule types in the specified assemblies.

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.

IRuleTypeScanner AssemblyOf(Type type)

Parameters

type Type

Type, 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.

IRuleTypeScanner AssemblyOf<T>()

Returns

IRuleTypeScanner

Rule type scanner to continue scanning specification.

Type Parameters

T

Type, whose assembly to scan.

NestedTypes(bool)

Enables/disables discovery of nested rule classes. Default is off.

IRuleTypeScanner NestedTypes(bool include = true)

Parameters

include bool

Include 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.

IRuleTypeScanner PrivateTypes(bool include = true)

Parameters

include bool

Include 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.

IRuleTypeScanner Type(params Type[] types)

Parameters

types Type[]

Types to scan.

Returns

IRuleTypeScanner

Rule type scanner to continue scanning specification.