a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
18 lines
512 B
C#
18 lines
512 B
C#
namespace System.Web.Mvc {
|
|
using System.Web.Mvc.Razor;
|
|
using System.Web.WebPages.Razor;
|
|
|
|
public class MvcWebRazorHostFactory : WebRazorHostFactory {
|
|
|
|
public override WebPageRazorHost CreateHost(string virtualPath, string physicalPath) {
|
|
WebPageRazorHost host = base.CreateHost(virtualPath, physicalPath);
|
|
|
|
if(!host.IsSpecialPage) {
|
|
return new MvcWebPageRazorHost(virtualPath, physicalPath);
|
|
}
|
|
|
|
return host;
|
|
}
|
|
}
|
|
}
|