/// <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; }
/// <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); }