IContext Interface |
Namespace: NRules.RuleModel
public interface IContext
The IContext type exposes the following members.
Name | Description | |
---|---|---|
![]() | CancellationToken |
Enables cooperative cancellation of the rules execution cycle.
|
![]() | Match |
Current rule match.
|
![]() | Rule |
Current rule definition.
|
Name | Description | |
---|---|---|
![]() | GetLinked |
Retrieves a fact linked to the current rule activation by key.
|
![]() | GetLinkedKeys |
Retrieves keys of facts linked to the current rule activation.
|
![]() | Halt |
Halts rules execution. The engine continues execution of the current rule and exits the execution cycle.
|
![]() | Insert |
Inserts a new fact to the rules engine memory.
|
![]() | InsertAll |
Inserts new facts to the rules engine memory.
|
![]() | InsertAllLinked |
Inserts new facts and links them to the current rule activation.
The facts will be automatically retracted if this activation is removed.
|
![]() | InsertLinked |
Inserts a new fact and links it to the current rule activation.
The fact will be automatically retracted if this activation is removed.
|
![]() | Resolve |
Resolves a registered service (normally via an IoC container).
|
![]() | Retract |
Removes existing fact from the rules engine memory.
|
![]() | RetractAll |
Removes existing facts from the rules engine memory.
|
![]() | RetractAllLinked |
Retracts existing facts that are linked to the current rule activation.
|
![]() | RetractLinked |
Retracts existing fact that's linked to the current rule activation.
|
![]() | TryInsert |
Inserts a fact to the rules engine memory if the fact does not exist.
|
![]() | TryRetract |
Removes a fact from the rules engine memory if the fact exists.
|
![]() | TryUpdate |
Updates a fact in the rules engine memory if the fact exists.
|
![]() | Update |
Updates existing fact in the rules engine memory.
|
![]() | UpdateAll |
Updates existing facts in the rules engine memory.
|
![]() | UpdateAllLinked |
Updates existing facts that are linked to the current rule activation.
|
![]() | UpdateLinked |
Updates existing fact that's linked to the current rule activation.
|
Name | Description | |
---|---|---|
![]() | ResolveTService |
Resolves a registered service (normally via an IoC container).
(Defined by ContextExtensions.) |
![]() | UpdateT |
Updates existing fact in the rules engine's memory.
First the update action is applied to the fact, then the fact is updated in the engine's memory.
(Defined by ContextExtensions.) |