Ejemplo n.º 1
0
        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
            }
        }
Ejemplo n.º 2
0
 bool BundlesContainRawFileReference(string path)
 {
     using (bundles.GetReadLock())
     {
         return(RawFileReferenceFinder.RawFileReferenceExists(path, bundles));
     }
 }