Ejemplo n.º 1
0
 void BuildFilenameSet()
 {
     filenames = new HashedCompareSet <string>(
         (from item in matches
          where item.Success
          select item.FileName).ToArray(),
         StringComparer.OrdinalIgnoreCase
         );
 }
        public FileSystemWatchingBundleRebuilder(CassetteSettings settings, BundleCollection bundles, IBundleCollectionInitializer initializer, IEnumerable <IFileSearch> fileSearches)
        {
            this.settings     = settings;
            this.bundles      = bundles;
            this.initializer  = initializer;
            this.fileSearches = fileSearches;

            bundleDescriptorFilenames = GetBundleDescriptorFilenames();

            // Initially use the bundles collection, but this will get updated in the Changed event handler.
            readOnlyBundles  = new ReadOnlyCollection <Bundle>(bundles.ToList());
            bundles.Changed += HandleBundlesChanged;
        }
        public FileSystemWatchingBundleRebuilder(CassetteSettings settings, BundleCollection bundles, IBundleCollectionInitializer initializer, IEnumerable<IFileSearch> fileSearches)
        {
            this.settings = settings;
            this.bundles = bundles;
            this.initializer = initializer;
            this.fileSearches = fileSearches;

            bundleDescriptorFilenames = GetBundleDescriptorFilenames();

            // Initially use the bundles collection, but this will get updated in the Changed event handler.
            readOnlyBundles = new ReadOnlyCollection<Bundle>(bundles.ToList());
            bundles.Changed += HandleBundlesChanged;
        }
 void BuildFilenameSet()
 {
     filenames = new HashedCompareSet<string>(
         (from item in matches
         where item.Success
         select item.FileName).ToArray(),
         StringComparer.OrdinalIgnoreCase
     );
 }