public void Reference <T>(string path, string location = null) where T : Bundle { using (allBundles.GetReadLock()) { var factory = bundleFactoryProvider.GetBundleFactory <T>(); var bundles = GetBundles(path, () => factory.CreateExternalBundle(path)).OfType <T>(); #if NET35 Reference(bundles.Cast <Bundle>(), location); #else Reference(bundles, location); #endif } }
bool BundlesContainRawFileReference(string path) { using (bundles.GetReadLock()) { return(RawFileReferenceFinder.RawFileReferenceExists(path, bundles)); } }