Table of Contents

Interface IEventProvider

Namespace
NRules.Diagnostics
Assembly
NRules.dll

Provider of rules session events.

public interface IEventProvider

Events

ActivationCreatedEvent

Raised when a new rule activation is created. A new activation is created when a new set of facts (tuple) matches a rule. The activation is placed on the agenda and becomes a candidate for firing.

event EventHandler<AgendaEventArgs> ActivationCreatedEvent

Event Type

EventHandler<AgendaEventArgs>

ActivationDeletedEvent

Raised when an existing activation is deleted. An activation is deleted when a previously matching set of facts (tuple) no longer matches the rule due to updated or retracted facts. The activation is removed from the agenda and is no longer a candidate for firing.

event EventHandler<AgendaEventArgs> ActivationDeletedEvent

Event Type

EventHandler<AgendaEventArgs>

ActivationUpdatedEvent

Raised when an existing activation is updated. An activation is updated when a previously matching set of facts (tuple) is updated and it still matches the rule. The activation is updated in the agenda and remains a candidate for firing.

event EventHandler<AgendaEventArgs> ActivationUpdatedEvent

Event Type

EventHandler<AgendaEventArgs>

AgendaExpressionEvaluatedEvent

Raised when agenda expression is evaluated. This event is raised on both, successful expression evaluations, and on exceptions.

event EventHandler<AgendaExpressionEventArgs> AgendaExpressionEvaluatedEvent

Event Type

EventHandler<AgendaExpressionEventArgs>
See Also

AgendaExpressionFailedEvent

Raised when agenda expression evaluation threw an exception. Gives observer of the event control over handling of the exception.

event EventHandler<AgendaExpressionErrorEventArgs> AgendaExpressionFailedEvent

Event Type

EventHandler<AgendaExpressionErrorEventArgs>
See Also

FactInsertedEvent

Raised after a new fact is inserted into working memory.

event EventHandler<WorkingMemoryEventArgs> FactInsertedEvent

Event Type

EventHandler<WorkingMemoryEventArgs>

FactInsertingEvent

Raised before a new fact is inserted into working memory.

event EventHandler<WorkingMemoryEventArgs> FactInsertingEvent

Event Type

EventHandler<WorkingMemoryEventArgs>

FactRetractedEvent

Raised after an existing fact is retracted from the working memory.

event EventHandler<WorkingMemoryEventArgs> FactRetractedEvent

Event Type

EventHandler<WorkingMemoryEventArgs>

FactRetractingEvent

Raised before an existing fact is retracted from the working memory.

event EventHandler<WorkingMemoryEventArgs> FactRetractingEvent

Event Type

EventHandler<WorkingMemoryEventArgs>

FactUpdatedEvent

Raised after an existing fact is updated in the working memory.

event EventHandler<WorkingMemoryEventArgs> FactUpdatedEvent

Event Type

EventHandler<WorkingMemoryEventArgs>

FactUpdatingEvent

Raised before an existing fact is updated in the working memory.

event EventHandler<WorkingMemoryEventArgs> FactUpdatingEvent

Event Type

EventHandler<WorkingMemoryEventArgs>

LhsExpressionEvaluatedEvent

Raised when left-hand side expression is evaluated. This event is raised on both, successful expression evaluations, and on exceptions.

event EventHandler<LhsExpressionEventArgs> LhsExpressionEvaluatedEvent

Event Type

EventHandler<LhsExpressionEventArgs>

LhsExpressionFailedEvent

Raised when left-hand side expression evaluation threw an exception. Gives observer of the event control over handling of the exception.

event EventHandler<LhsExpressionErrorEventArgs> LhsExpressionFailedEvent

Event Type

EventHandler<LhsExpressionErrorEventArgs>

RhsExpressionEvaluatedEvent

Raised when right-hand side expression is evaluated. This event is raised on both, successful expression evaluations, and on exceptions.

event EventHandler<RhsExpressionEventArgs> RhsExpressionEvaluatedEvent

Event Type

EventHandler<RhsExpressionEventArgs>
See Also

RhsExpressionFailedEvent

Raised when right-hand side expression evaluation threw an exception. Gives observer of the event control over handling of the exception.

event EventHandler<RhsExpressionErrorEventArgs> RhsExpressionFailedEvent

Event Type

EventHandler<RhsExpressionErrorEventArgs>
See Also

RuleFiredEvent

Raised after a rule has fired and all its actions executed.

event EventHandler<AgendaEventArgs> RuleFiredEvent

Event Type

EventHandler<AgendaEventArgs>

RuleFiringEvent

Raised before a rule is about to fire.

event EventHandler<AgendaEventArgs> RuleFiringEvent

Event Type

EventHandler<AgendaEventArgs>