/// <summary>
        ///     Initialize runtime instance
        /// </summary>
        public EsapiRuntime()
        {
            this._actions = new NamedObjectRepository<IAction>();
            this._rules = new NamedObjectRepository<IRule>();
            this._conditions = new NamedObjectRepository<ICondition>();

            this._contextsLock = new ReaderWriterLockSlim();
            this._contexts = new NamedObjectRepository<IContext>();
        }
Example #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>();
        }