BoC.Security.Mvc.App_Start.RazorGeneratorMvcStart.Start C# (CSharp) Method

Start() public static method

public static Start ( ) : void
return void
        public static void Start()
        {
            var engine = new PrecompiledMvcEngine(typeof(RazorGeneratorMvcStart).Assembly) {
                UsePhysicalViewsIfNewer = HttpContext.Current.Request.IsLocal
            };

            ViewEngines.Engines.Insert(0, engine);

            // StartPage lookups are done by WebPages.
            VirtualPathFactoryManager.RegisterVirtualPathFactory(engine);
        }
RazorGeneratorMvcStart