Esempio n. 1
0
        private ScanRequest BuildRequest(ICollection<IViewTemplate> templates, params string[] roots)
        {
            var request = new ScanRequest();
            requestConfig.Do(request);

            roots.ToList().ForEach(request.AddRoot);
            request.AddHandler(fileFound => templates.Add(GetTemplate(fileFound)));

            return request;
        }
Esempio n. 2
0
 public void Scan(ScanRequest request)
 {
     var fileSet = new FileSet { Include = request.Filters, DeepSearch = false };
     scannedDirectories = new List<string>();
     request.Roots.ForEach(root => Scan(root, root, fileSet, request.OnFound, request.ExcludedDirectories));
 }