Exemplo n.º 1
0
        public EndsWithPatternMatch(FileChangeCategory category, string match)
        {
            if (!match.StartsWith("*"))
            {
                throw new ArgumentOutOfRangeException("match", "Pattern must start with an '*'");
            }

            _category = category;
            _match    = match;

            _suffix = _match.TrimStart('*');
        }
Exemplo n.º 2
0
        public EndsWithPatternMatch(FileChangeCategory category, string match)
        {
            if (!match.StartsWith("*"))
            {
                throw new ArgumentOutOfRangeException("match", "Pattern must start with an '*'");
            }

            _category = category;
            _match = match;

            _suffix = _match.TrimStart('*');
        }
Exemplo n.º 3
0
        private bool matches(FileChangeCategory category, string file)
        {
            var matchers = _matchers[category];

            return(matchers.Any(x => x.Matches(file)));
        }
Exemplo n.º 4
0
 public IEnumerable <IFileMatch> MatchersFor(FileChangeCategory category)
 {
     return(_matchers[category]);
 }
Exemplo n.º 5
0
 public ExactFileMatch(FileChangeCategory category, string file)
 {
     _category = category;
     _file     = file;
 }
Exemplo n.º 6
0
 public ExtensionMatch(FileChangeCategory category, string extension)
 {
     _category = category;
     _extension = Path.GetExtension(extension);
 }
Exemplo n.º 7
0
 public ExactFileMatch(FileChangeCategory category, string file)
 {
     _category = category;
     _file = file;
 }
Exemplo n.º 8
0
 public IEnumerable<IFileMatch> MatchersFor(FileChangeCategory category)
 {
     return _matchers[category];
 }
Exemplo n.º 9
0
 private bool matches(FileChangeCategory category, string file)
 {
     var matchers = _matchers[category];
     return matchers.Any(x => x.Matches(file));
 }
Exemplo n.º 10
0
 public ExtensionMatch(FileChangeCategory category, string extension)
 {
     _category  = category;
     _extension = Path.GetExtension(extension);
 }