예제 #1
0
        /// <summary>
        /// Create an instance of the RazorHost in the current
        /// AppDomain. No special handling...
        /// </summary>
        /// <returns></returns>
        public static RazorEngine <TBaseTemplateType> CreateRazorHost(CSharpCodeProvider codeProvider = null)
        {
            if (Current == null)
            {
                Current = new RazorEngineFactory <TBaseTemplateType>();
            }

            return(Current.GetRazorHost(codeProvider));
        }
예제 #2
0
        /// <summary>
        /// Create an instance of the RazorHost in the current
        /// AppDomain. No special handling...
        /// </summary>
        /// <returns></returns>
        public static RazorEngine <TBaseTemplateType> CreateRazorHost()
        {
            if (Current == null)
            {
                Current = new RazorEngineFactory <TBaseTemplateType>();
            }

            return(Current.GetRazorHost());
        }