Ejemplo n.º 1
0
 static CssBundleManager()
 {
     DynamicScriptManager.ScriptChanged += name =>
     {
         HashSet <string> bundleKeys;
         var b = bundleKeysBySourceUrl;
         if (b != null &&
             b.TryGetValue("dynamic://" + name, out bundleKeys))
         {
             foreach (var bundleKey in bundleKeys)
             {
                 DynamicScriptManager.Changed("Bundle." + bundleKey);
             }
         }
     };
 }
Ejemplo n.º 2
0
        static ScriptBundleManager()
        {
            DynamicScriptManager.ScriptChanged += name =>
            {
                var instance = ScriptBundleManager.instance;

                HashSet <string> bundleKeys;
                if (instance != null &&
                    instance.bundleKeysBySourceUrl != null &&
                    instance.bundleKeysBySourceUrl.TryGetValue("dynamic://" + name, out bundleKeys))
                {
                    foreach (var bundleKey in bundleKeys)
                    {
                        DynamicScriptManager.Changed("Bundle." + bundleKey);
                    }
                }
            };
        }