public static string AddBundle(BundleData bundleData)
        {
            var path        = bundleData.GetBundleVirtualPath(BUNDLE_VPATH, ClientSettings.ResetCacheKey);
            var virtualPath = ToVirtualPath(path);
            var bundle      = (ASCBundle)BundleTable.Bundles.GetBundleFor(virtualPath);

            if (bundle == null)
            {
                bundle = bundleData.CreateAscBundle(virtualPath);
                foreach (var script in bundleData.GetSource())
                {
                    bundle.Include(script);
                }
                AddBundle(bundle);
            }

            return(bundle.GetLink(path));
        }
Exemple #2
0
 protected void SetData(BundleData data)
 {
     bundleData = CreateNewBundleData(data.FileName, data.CategoryName).AddSource(r => r, data.GetSource().ToArray());
 }
Exemple #3
0
 protected ResourceBundleControl()
 {
     bundleData = CreateNewBundleData("", "");
 }