4cd57f4a90
Migrate all SignalR 1.x Persistent Connections to SignalR 2.x Hubs. Abstracts ScheduledTaskStatus with core interface and adds a Mock for optional status reporting. Noticeboards rewritten (with new theme) to be more resilient and accurate.
26 lines
735 B
C#
26 lines
735 B
C#
using System.Web;
|
|
using System.Web.Mvc;
|
|
using System.Web.WebPages;
|
|
using RazorGenerator.Mvc;
|
|
|
|
[assembly: WebActivatorEx.PostApplicationStartMethod(typeof(Disco.Web.RazorGeneratorMvcStart), "Start")]
|
|
|
|
namespace Disco.Web {
|
|
public static class RazorGeneratorMvcStart {
|
|
public static void Start() {
|
|
var engine = new PrecompiledMvcEngine(typeof(RazorGeneratorMvcStart).Assembly) {
|
|
#if DEBUG
|
|
UsePhysicalViewsIfNewer = true
|
|
#else
|
|
UsePhysicalViewsIfNewer = false
|
|
#endif
|
|
};
|
|
|
|
ViewEngines.Engines.Insert(0, engine);
|
|
|
|
// StartPage lookups are done by WebPages.
|
|
VirtualPathFactoryManager.RegisterVirtualPathFactory(engine);
|
|
}
|
|
}
|
|
}
|