Update: Framework Dependancies Updated
Update: jQuery 1.9.1, jQuery UI 1.10, T4MVC, jQuery Validate, Highcharts, Knockout, tinymce; Remove: dotless compiler
This commit is contained in:
@@ -1,44 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
using Microsoft.Web.Infrastructure.DynamicModuleHelper;
|
||||
|
||||
[assembly: WebActivator.PreApplicationStartMethod(typeof(Disco.Web.Extensions.MvcExtensions.Bundles.BundleModule), "PreApplicationStart")]
|
||||
|
||||
namespace Disco.Web.Extensions.MvcExtensions.Bundles
|
||||
{
|
||||
public class BundleModule :IHttpModule
|
||||
{
|
||||
public void Init(HttpApplication context)
|
||||
{
|
||||
context.PostResolveRequestCache += new EventHandler(this.OnApplicationPostResolveRequestCache);
|
||||
}
|
||||
|
||||
private void OnApplicationPostResolveRequestCache(object sender, EventArgs e)
|
||||
{
|
||||
HttpApplication app = (HttpApplication)sender;
|
||||
if (BundleTable.Count > 0)
|
||||
{
|
||||
BundleHandler.RemapHandlerForBundleRequests(app);
|
||||
}
|
||||
}
|
||||
|
||||
private static bool _startWasCalled;
|
||||
public static void PreApplicationStart()
|
||||
{
|
||||
if (!_startWasCalled)
|
||||
{
|
||||
_startWasCalled = true;
|
||||
DynamicModuleUtility.RegisterModule(typeof(BundleModule));
|
||||
}
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Dispose Nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
using Microsoft.Web.Infrastructure.DynamicModuleHelper;
|
||||
|
||||
[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(Disco.Web.Extensions.MvcExtensions.Bundles.BundleModule), "PreApplicationStart")]
|
||||
|
||||
namespace Disco.Web.Extensions.MvcExtensions.Bundles
|
||||
{
|
||||
public class BundleModule :IHttpModule
|
||||
{
|
||||
public void Init(HttpApplication context)
|
||||
{
|
||||
context.PostResolveRequestCache += new EventHandler(this.OnApplicationPostResolveRequestCache);
|
||||
}
|
||||
|
||||
private void OnApplicationPostResolveRequestCache(object sender, EventArgs e)
|
||||
{
|
||||
HttpApplication app = (HttpApplication)sender;
|
||||
if (BundleTable.Count > 0)
|
||||
{
|
||||
BundleHandler.RemapHandlerForBundleRequests(app);
|
||||
}
|
||||
}
|
||||
|
||||
private static bool _startWasCalled;
|
||||
public static void PreApplicationStart()
|
||||
{
|
||||
if (!_startWasCalled)
|
||||
{
|
||||
_startWasCalled = true;
|
||||
DynamicModuleUtility.RegisterModule(typeof(BundleModule));
|
||||
}
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Dispose Nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user