Ejemplo n.º 1
0
        static public void Trigger(this IRSRuntimeEntity inEntity, RSTriggerId inTriggerId, object inArgument = null, bool inbForce = false)
        {
            IRSRuntimeEntityMgr mgr = inEntity?.Manager;

            if (mgr != null && mgr.IsReady() && mgr.Context != null)
            {
                mgr.Context.Trigger(inEntity, inTriggerId, inArgument, inbForce);
            }
        }
Ejemplo n.º 2
0
        public RSEnvironment(RSLibrary inDatabase, IRSRuntimeEntityMgr inEntityMgr, IRSRuleTableMgr inTableMgr, IRSDebugLogger inLogger)
        {
            Library  = inDatabase;
            Entities = inEntityMgr;
            Tables   = inTableMgr;
            Logger   = inLogger;

            if (Entities != null)
            {
                Entities.Context = this;
            }

            m_StaticScope = new ExecutionScope(this, ExecutionScope.Type.Registers);
            m_StaticScope.Initialize(null, RSValue.Null);

            m_LocalScopePool    = new List <ExecutionScope>();
            m_RegisterScopePool = new List <ExecutionScope>();
        }