public WhiteSpaceBusterMvcWebPageRazorHost(
     string virtualPath,
     string physicalPath,
     RazorOptimizer optimizer)
     : base(virtualPath, physicalPath)
 {
     _optimizer = optimizer;
 }
Esempio n. 2
0
        public WhiteSpaceBusterHtmlMarkupParser(ParserBase inner, RazorOptimizer optimizer)
        {
            Require.NotNull(inner, nameof(inner));
            Require.NotNull(optimizer, nameof(optimizer));

            _inner     = inner;
            _optimizer = optimizer;
        }
Esempio n. 3
0
        public WhiteSpaceBusterMvcCSharpRazorCodeGenerator(
            string className,
            string rootNamespaceName,
            string sourceFileName,
            RazorEngineHost host,
            RazorOptimizer optimizer)
            : base(className, rootNamespaceName, sourceFileName, host)
        {
            Require.NotNull(optimizer, nameof(optimizer));

            _optimizer = optimizer;

            var mvcHost = host as MvcWebPageRazorHost;

            // À la différence de MvcCSharpRazorCodeGenerator, on n'a pas besoin de vérifier
            // host.IsSpecialPage car on exclut ce type de hôte en amont au niveau de
            // WhiteSpaceBusterMvcWebRazorHostFactory.
            if (mvcHost != null)
            {
                SetBaseType("dynamic");
            }
        }