Пример #1
0
        /// <summary>
        /// Add condition
        /// </summary>
        /// <param name="condition"></param>
        /// <param name="value">Value to match</param>
        /// <returns></returns>
        public IContextCondition BindCondition(ICondition condition, bool value)
        {
            ContextCondition contextCondition = new ContextCondition(condition, value);

            _conditions.Add(contextCondition);

            return(contextCondition);
        }
Пример #2
0
        /// <summary>
        ///     Add condition
        /// </summary>
        /// <param name="condition"></param>
        /// <param name="value">Value to match</param>
        /// <returns></returns>
        public IContextCondition BindCondition(ICondition condition, bool value)
        {
            ContextCondition contextCondition = new ContextCondition(condition, value);
            this._conditions.Add(contextCondition);

            return contextCondition;
        }