Table of Contents

Class RuleRepositoryExtensions

Namespace
NRules
Assembly
NRules.dll
public static class RuleRepositoryExtensions
Inheritance
RuleRepositoryExtensions
Inherited Members

Methods

Compile(IRuleRepository)

Compiles all rules in the repository into a session factory. Use RuleCompiler explicitly if only need to compile a subset of rules.

public static ISessionFactory Compile(this IRuleRepository repository)

Parameters

repository IRuleRepository

Rule repository.

Returns

ISessionFactory

Session factory.

See Also

Compile(IRuleRepository, CancellationToken)

Compiles all rules in the repository into a session factory. Use RuleCompiler explicitly if only need to compile a subset of rules.

public static ISessionFactory Compile(this IRuleRepository repository, CancellationToken cancellationToken)

Parameters

repository IRuleRepository

Rule repository.

cancellationToken CancellationToken

Enables cooperative cancellation of the rules compilation.

Returns

ISessionFactory

Session factory.

See Also

GetRules(IRuleRepository)

Retrieves all rules from all rule sets contained in the repository.

public static IEnumerable<IRuleDefinition> GetRules(this IRuleRepository repository)

Parameters

repository IRuleRepository

Returns

IEnumerable<IRuleDefinition>

Collection of rules from the repository.