Click or drag to resize

RuleRepository Class

Rules repository based on the rules defined inline using internal DSL. Use Load(ActionIRuleLoadSpec) method to fluently load rules into the repository.
Inheritance Hierarchy
SystemObject
  NRules.FluentRuleRepository

Namespace:  NRules.Fluent
Assembly:  NRules.Fluent (in NRules.Fluent.dll) Version: 0.8.4
Syntax
C#
public class RuleRepository : IRuleRepository

The RuleRepository type exposes the following members.

Constructors
  NameDescription
Public methodRuleRepository
Creates an empty rule repository.
Top
Properties
  NameDescription
Public propertyActivator
Rules activator that instantiates rules based on a CLR type.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetRuleSets
Retrieves all rule sets contained in the repository.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad
Loads rules into a rule set using provided loader specification.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodCompile
Compiles all rules in the repository into a session factory. Use RuleCompiler explicitly if only need to compile a subset of rules.
(Defined by RuleRepositoryExtensions.)
Public Extension MethodGetRules
Retrieves all rules from all rule sets contained in the repository.
(Defined by RuleRepositoryExtensions.)
Top
See Also