A class that executes requests.
Inheritance: System.MarshalByRefObject, IAspRequestProcessor
Esempio n. 1
0
        /// <summary>
        ///     Initializes the <see cref="T:Netty.AspRequestProcessor" /> based on the configuration within the context of an application.
        /// </summary>
        /// <param name="virtualPath">The virtual path used by the ASP.Net server.</param>
        /// <param name="physicalPath">The physical path used by the ASP.Net server.</param>
        /// <returns>
        ///     An <see cref="T:Netty.AspRequestProcessor" /> used for the ASP.Net server.
        /// </returns>
        public AspRequestProcessor ConfigurationInitializer(string virtualPath, string physicalPath)
        {
            var processor = new AspRequestProcessor();

            // Setup the ASP.Net handler
            var aspHandler = new AspNetHandler()
            {
                PhysicalPath = physicalPath,
                VirtualPath = virtualPath
            };

            // Set the default handler
            processor.DefaultHandler = aspHandler;

            // Returns the processor
            return processor;
        }
Esempio n. 2
0
        /// <summary>
        ///     Initializes the <see cref="T:Netty.AspRequestProcessor" /> based on the configuration within the context of an application.
        /// </summary>
        /// <param name="virtualPath">The virtual path used by the ASP.Net server.</param>
        /// <param name="physicalPath">The physical path used by the ASP.Net server.</param>
        /// <returns>
        ///     An <see cref="T:Netty.AspRequestProcessor" /> used for the ASP.Net server.
        /// </returns>
        public AspRequestProcessor ConfigurationInitializer(string virtualPath, string physicalPath)
        {
            var processor = new AspRequestProcessor();

            // Setup the ASP.Net handler
            var aspHandler = new AspNetHandler()
            {
                PhysicalPath = physicalPath,
                VirtualPath  = virtualPath
            };

            // Set the default handler
            processor.DefaultHandler = aspHandler;

            // Returns the processor
            return(processor);
        }