상속: System.Web.Hosting.VirtualPathProvider
예제 #1
0
        /// <summary>
        /// Initializes the <see cref="ZephyrViewEngine"/> class.
        /// </summary>
        static ZephyrViewEngine()
        {
            ViewEngines.Engines.Insert(ViewEngines.Engines.Count, new ZephyrViewEngine());

            try
            {
                var pathProvider = new ZephyrViewEngineVirtualPathProvider();
                HostingEnvironment.RegisterVirtualPathProvider(pathProvider);
            }
            catch (SecurityException)
            {
                // Partial trust... No support for this!
            }
        }
예제 #2
0
        /// <summary>
        /// Initializes the <see cref="ZephyrViewEngine"/> class.
        /// </summary>
        static ZephyrViewEngine()
        {
            ViewEngines.Engines.Insert(ViewEngines.Engines.Count, new ZephyrViewEngine());

            try
            {
                var pathProvider = new ZephyrViewEngineVirtualPathProvider();
                HostingEnvironment.RegisterVirtualPathProvider(pathProvider);
            }
            catch (SecurityException)
            {
                // Partial trust... No support for this!
            }
        }