Bundle CreateExternalBundle(string url, Bundle referencer)
 {
     var bundleFactory = GetBundleFactory(referencer.GetType());
     var externalBundle = bundleFactory.CreateExternalBundle(url);
     externalBundle.Process(settings);
     return externalBundle;
 }
        Bundle CreateExternalBundle(string url, Bundle referencer)
        {
            var bundleFactory  = GetBundleFactory(referencer.GetType());
            var externalBundle = bundleFactory.CreateExternalBundle(url);

            externalBundle.Process(settings);
            return(externalBundle);
        }
Example #3
0
 public string CreateBundleUrl(Bundle bundle)
 {
     return urlModifier.Modify(
         String.Format(
             "{0}/{1}/{2}_{3}",
             routePrefix,
             ConventionalBundlePathName(bundle.GetType()),
             bundle.PathWithoutPrefix,
             bundle.Hash.ToHexString()
         )
     );
 }
Example #4
0
 static bool TypesEqual(Bundle x, Bundle y)
 {
     return x.GetType() == y.GetType();
 }
Example #5
0
 static bool TypesEqual(Bundle x, Bundle y)
 {
     return(x.GetType() == y.GetType());
 }