Inheritance: System.Web.Hosting.VirtualPathProvider
Example #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!
            }
        }
Example #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!
            }
        }