Пример #1
0
        /// <summary>
        /// Initialize runtime instance
        /// </summary>
        public EsapiRuntime()
        {
            _actions    = new NamedObjectRepository <IAction>();
            _rules      = new NamedObjectRepository <IRule>();
            _conditions = new NamedObjectRepository <ICondition>();

            _contextsLock = new ReaderWriterLockSlim();
            _contexts     = new NamedObjectRepository <IContext>();
        }
Пример #2
0
        internal Context(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentException();
            }

            _name = name;

            _conditions  = new List <IContextCondition>();
            _rules       = new List <IContextRule>();
            _subcontexts = new NamedObjectRepository <IContext>();
        }