Esempio n. 1
0
        protected override void OnBeforeCompilePath(CompilingPathEventArgs args)
        {
            base.OnBeforeCompilePath(args);

            if (!(args.Host is RazorHost))
            {
                args.Host = RazorHost.CreateFromAnother(args.Host);
            }
        }
Esempio n. 2
0
        protected override System.Web.WebPages.Razor.WebPageRazorHost GetHostFromConfig()
        {
            var host = base.GetHostFromConfig();

            if (!(host is RazorHost))
            {
                host = RazorHost.CreateFromAnother(host);
            }

            return(host);
        }