Esempio n. 1
0
        public StringFilter(FilterAction action, FeedField scope, IEnumerable<string> patterns)
            : base(action, scope)
        {
            if (patterns == null)
                throw new ArgumentNullException("patterns");

            this.patterns = patterns.ToArray();
        }
Esempio n. 2
0
        public RegexFilter(FilterAction action, FeedField scope, IEnumerable<string> patterns)
            : base(action, scope)
        {
            if (patterns == null)
                throw new ArgumentNullException("patterns");

            this.regularExpressions = patterns
                .Select(pattern => new Regex(pattern, RegexOptions.Compiled | RegexOptions.Singleline | RegexOptions.Multiline | RegexOptions.IgnoreCase))
                .ToArray();
        }
Esempio n. 3
0
        public StringFilter(FilterAction action, FeedField scope, IEnumerable <string> patterns)
            : base(action, scope)
        {
            if (patterns == null)
            {
                throw new ArgumentNullException("patterns");
            }

            this.patterns = patterns.ToArray();
        }
Esempio n. 4
0
        public RegexFilter(FilterAction action, FeedField scope, IEnumerable <string> patterns)
            : base(action, scope)
        {
            if (patterns == null)
            {
                throw new ArgumentNullException("patterns");
            }

            this.regularExpressions = patterns
                                      .Select(pattern => new Regex(pattern, RegexOptions.Compiled | RegexOptions.Singleline | RegexOptions.Multiline | RegexOptions.IgnoreCase))
                                      .ToArray();
        }
Esempio n. 5
0
 public Filter(FilterAction action, FeedField field)
 {
     this.Action = action;
     this.Field  = field;
 }
Esempio n. 6
0
 public Filter(FilterAction action, FeedField field)
 {
     this.Action = action;
     this.Field = field;
 }