示例#1
0
文件: Setup.cs 项目: whesius/allors
        public Setup(ISession session, DirectoryInfo dataPath)
        {
            this.session = session;
            this.DataPath = dataPath;

            this.objectsByObjectType = new Dictionary<IObjectType, IObjects>();
            foreach (ObjectType objectType in session.Database.MetaPopulation.Composites)
            {
                this.objectsByObjectType[objectType] = objectType.GetObjects(session);
            }

            this.objectsGraph = new ObjectsGraph();
        }
示例#2
0
        public Setup(ISession session, DirectoryInfo dataPath)
        {
            this.session  = session;
            this.DataPath = dataPath;

            this.objectsByObjectType = new Dictionary <IObjectType, IObjects>();
            foreach (ObjectType objectType in session.Database.MetaPopulation.Composites)
            {
                this.objectsByObjectType[objectType] = objectType.GetObjects(session);
            }

            this.objectsGraph = new ObjectsGraph();
        }
示例#3
0
        public Setup(ISession session, Config config)
        {
            this.Config  = config;
            this.session = session;

            this.objectsByObjectType = new Dictionary <IObjectType, IObjects>();
            foreach (var objectType in session.Database.MetaPopulation.Composites)
            {
                this.objectsByObjectType[objectType] = objectType.GetObjects(session);
            }

            this.objectsGraph = new ObjectsGraph();
        }