Inheritance: System.Web.Hosting.VirtualPathProvider
Ejemplo n.º 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!
            }
        }
Ejemplo n.º 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!
            }
        }