Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="T:Filter"/> class.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <param name="variablesManager">The variables manager.</param>
        /// <param name="valueCheckers">The value checkers.</param>
        /// <exception cref="ArgumentNullException">If <paramref name="variablesManager"/> is <code>null</code>.</exception>
        public Filter(IExecutionContext context, PacketPropertyVariablesManager variablesManager, List <IValueChecker <object> > valueCheckers)
            : base(context)
        {
            if (null == variablesManager)
            {
                throw new ArgumentNullException("variablesManager", "Variables manager is required to function properly.");
            }

            this.variablesManager = variablesManager;
            // Clone list of value checkers
            this.valueCheckers = valueCheckers.ToArray();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="T:Filter"/> class.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <param name="variablesManager">The variables manager.</param>
        /// <param name="valueCheckers">The value checkers.</param>
        /// <exception cref="ArgumentNullException">If <paramref name="variablesManager"/> is <code>null</code>.</exception>
        public Filter(IExecutionContext context, PacketPropertyVariablesManager variablesManager, List<IValueChecker<object>> valueCheckers)
            : base(context)
        {
            if (null == variablesManager)
            {
                throw new ArgumentNullException("variablesManager", "Variables manager is required to function properly.");
            }

            this.variablesManager = variablesManager;
            // Clone list of value checkers
            this.valueCheckers = valueCheckers.ToArray();
        }