예제 #1
0
 public ExecutionContext(ISessionInternal session, IWorkingMemory workingMemory, IAgendaInternal agenda, IEventAggregator eventAggregator)
 {
     Session         = session;
     WorkingMemory   = workingMemory;
     Agenda          = agenda;
     EventAggregator = eventAggregator;
 }
예제 #2
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>();
 }
예제 #3
0
 internal Session(
     INetwork network,
     IAgendaInternal agenda,
     IWorkingMemory workingMemory,
     IEventAggregator eventAggregator,
     IActionExecutor actionExecutor,
     IDependencyResolver dependencyResolver,
     IActionInterceptor actionInterceptor)
 {
     _network           = network;
     _workingMemory     = workingMemory;
     _agenda            = agenda;
     _eventAggregator   = eventAggregator;
     _actionExecutor    = actionExecutor;
     _executionContext  = new ExecutionContext(this, _workingMemory, _agenda, _eventAggregator);
     DependencyResolver = dependencyResolver;
     ActionInterceptor  = actionInterceptor;
 }
예제 #4
0
파일: Session.cs 프로젝트: arastoul/NRules
 internal Session(
     INetwork network,
     IAgendaInternal agenda,
     IWorkingMemory workingMemory,
     IEventAggregator eventAggregator,
     IMetricsAggregator metricsAggregator,
     IActionExecutor actionExecutor,
     IIdGenerator idGenerator,
     IDependencyResolver dependencyResolver,
     IActionInterceptor actionInterceptor)
 {
     _network                 = network;
     _workingMemory           = workingMemory;
     _agenda                  = agenda;
     _eventAggregator         = eventAggregator;
     _metricsAggregator       = metricsAggregator;
     _actionExecutor          = actionExecutor;
     _executionContext        = new ExecutionContext(this, _workingMemory, _agenda, _eventAggregator, _metricsAggregator, idGenerator);
     DependencyResolver       = dependencyResolver;
     ActionInterceptor        = actionInterceptor;
     AutoPropagateLinkedFacts = true;
 }