public DustProcVisitProcess(DustSession session, DustInfoTray tray)
        {
            this.session        = session;
            this.infoTray       = tray;
            this.visitTray      = tray as DustVisitTray;
            callbackTray        = (null == visitTray) ? new DustVisitTray(tray, null) : new DustVisitTray(visitTray);
            callbackTray.entity = session.resolveEntity(tray.entity);

            empty = true;

            dip = tray.value as DustInfoProcessor;
//			dif = tray.value as DustInfoFilter;
            dvp = tray.value as DustVisitor;
        }
        public static DustDataEntity loadSingleFromText(string jsonText, string mod, string id)
        {
            DustSystem  system  = DustSystem.getSystem();
            DustSession session = system.getCurrentSession();

            Dictionary <string, JsonUnitWrapper> js;

            js = JsonConvert.DeserializeObject <Dictionary <string, JsonUnitWrapper> >(jsonText);

            foreach (string k in js.Keys)
            {
                JsonUnitWrapper jw = js[k];

                Console.WriteLine("Unit read " + k);

                jw.populate(js, system, k);
            }

            DustDataEntity eRoot = system.getEntity(mod, id);

            session.ctx[DustContext.SELF] = eRoot;

            return(eRoot);
        }
Esempio n. 3
0
 public DustSession(DustSession p)
 {
     this.parent = p;
     this.system = p.system;
 }
Esempio n. 4
0
 public DustSession(DustSystem system)
 {
     this.system = system;
     this.parent = null;
 }
Esempio n. 5
0
 public DustSystem()
 {
     rootSession = new DustSession(this);
 }