예제 #1
0
 public BundleCollection(CassetteSettings settings, IFileSearchProvider fileSearchProvider, IBundleFactoryProvider bundleFactoryProvider, IBundleCollectionInitializer bundleCollectionInitializer)
 {
     this.settings                    = settings;
     this.fileSearchProvider          = fileSearchProvider;
     this.bundleFactoryProvider       = bundleFactoryProvider;
     this.bundleCollectionInitializer = bundleCollectionInitializer;
 }
        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;
        }
예제 #4
0
 public BundleCacheRebuilder(BundleCollection bundles, IBundleCollectionCache cache, IBundleCollectionInitializer bundleCollectionInitializer)
 {
     this.bundles = bundles;
     this.cache   = cache;
     this.bundleCollectionInitializer = bundleCollectionInitializer;
 }
 public ExceptionCatchingBundleCollectionInitializer(IBundleCollectionInitializer initializerImplementation)
 {
     this.initializerImplementation = initializerImplementation;
 }
예제 #6
0
 public ExceptionCatchingBundleCollectionInitializer(IBundleCollectionInitializer initializerImplementation)
 {
     this.initializerImplementation = initializerImplementation;
 }
예제 #7
0
 public BundleCacheRebuilder(BundleCollection bundles, IBundleCollectionCache cache, IBundleCollectionInitializer bundleCollectionInitializer)
 {
     this.bundles = bundles;
     this.cache = cache;
     this.bundleCollectionInitializer = bundleCollectionInitializer;
 }