Esempio n. 1
0
 public ISession CreateSession()
 {
     var agenda = new Agenda();
     var workingMemory = new WorkingMemory();
     var eventAggregator = new EventAggregator();
     var session = new Session(_network, agenda, workingMemory, eventAggregator);
     return session;
 }
Esempio n. 2
0
        public ISession CreateSession()
        {
            var agenda          = new Agenda();
            var workingMemory   = new WorkingMemory();
            var eventAggregator = new EventAggregator(_eventAggregator);
            var actionExecutor  = new ActionExecutor();
            var session         = new Session(_network, agenda, workingMemory, eventAggregator, actionExecutor, DependencyResolver, ActionInterceptor);

            return(session);
        }
Esempio n. 3
0
        public ISession CreateSession(Action <ISession> initializationAction)
        {
            var agenda          = CreateAgenda();
            var workingMemory   = new WorkingMemory();
            var eventAggregator = new EventAggregator(_eventAggregator);
            var actionExecutor  = new ActionExecutor();
            var session         = new Session(_network, agenda, workingMemory, eventAggregator, actionExecutor, DependencyResolver, ActionInterceptor);

            initializationAction?.Invoke(session);
            session.Activate();
            return(session);
        }