Пример #1
0
 public ExecutionContext(ISessionInternal session, IWorkingMemory workingMemory, IAgendaInternal agenda, IEventAggregator eventAggregator)
 {
     Session         = session;
     WorkingMemory   = workingMemory;
     Agenda          = agenda;
     EventAggregator = eventAggregator;
 }
Пример #2
0
 public ActionContext(ISessionInternal session, Activation activation, CancellationToken cancellationToken)
 {
     _session          = session;
     Activation        = activation;
     CancellationToken = cancellationToken;
     IsHalted          = false;
 }
Пример #3
0
 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>();
 }
Пример #4
0
        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);
            }
        }
Пример #5
0
 internal AggregationContext(ISessionInternal session, IEventAggregator eventAggregator, NodeDebugInfo nodeInfo)
 {
     Session         = session;
     EventAggregator = eventAggregator;
     NodeInfo        = nodeInfo;
 }
Пример #6
0
 internal AgendaContext(ISessionInternal session, IEventAggregator eventAggregator)
 {
     Session         = session;
     EventAggregator = eventAggregator;
 }
Пример #7
0
 public ActionContext(ISessionInternal session, Activation activation)
 {
     _session   = session;
     Activation = activation;
     IsHalted   = false;
 }