public ExecutionContext(ISessionInternal session, IWorkingMemory workingMemory, IAgendaInternal agenda, IEventAggregator eventAggregator) { Session = session; WorkingMemory = workingMemory; Agenda = agenda; EventAggregator = eventAggregator; }
public ActionContext(ISessionInternal session, Activation activation, CancellationToken cancellationToken) { _session = session; Activation = activation; CancellationToken = cancellationToken; IsHalted = false; }
public ExecutionContext(ISessionInternal session, IWorkingMemory workingMemory, IAgendaInternal agenda, IEventAggregator eventAggregator, IIdGenerator idGenerator) { Session = session; WorkingMemory = workingMemory; Agenda = agenda; EventAggregator = eventAggregator; IdGenerator = idGenerator; UnlinkQueue = new Queue <Activation>(); }
private static void UnlinkFacts(ISessionInternal session, Activation activation) { var linkedKeys = session.GetLinkedKeys(activation).ToList(); foreach (var key in linkedKeys) { var linkedFact = session.GetLinked(activation, key); session.RetractLinked(activation, key, linkedFact); } }
internal AggregationContext(ISessionInternal session, IEventAggregator eventAggregator, NodeDebugInfo nodeInfo) { Session = session; EventAggregator = eventAggregator; NodeInfo = nodeInfo; }
internal AgendaContext(ISessionInternal session, IEventAggregator eventAggregator) { Session = session; EventAggregator = eventAggregator; }
public ActionContext(ISessionInternal session, Activation activation) { _session = session; Activation = activation; IsHalted = false; }