Esempio n. 1
0
        public SearchToken(IWildcardMatch wildcardMatch, string filter)
        {
            if (wildcardMatch == null)
            {
                throw new ArgumentNullException(nameof(wildcardMatch));
            }

            if (string.IsNullOrEmpty(filter))
            {
                throw new ArgumentNullException(nameof(filter));
            }

            this.Filter   = filter;
            this.Wildcard = wildcardMatch;
            this.Wildcard.Initialize(filter);
        }
Esempio n. 2
0
 public SearchMatchService(IFileTypeResolver fileTypeResolver, IWildcardMatch wildcardMatch)
 {
     _fileTypeResolver = fileTypeResolver;
     _wildcardMatch    = wildcardMatch;
 }