Include() публичный Метод

Includes requested script file.
public Include ( HttpRequest req ) : void
req System.Web.HttpRequest
Результат void
Пример #1
0
        public void ProcessRequest(HttpContext context)
        {
            Debug.Assert(context != null);
#if DEBUG
            // disables ASP.NET timeout if possible:
            try { context.Server.ScriptTimeout = Int32.MaxValue; } catch (HttpException) { }
#endif
            var phpctx = new RequestContextAspNet(context);

            try
            {
                // find and process requested file
                phpctx.Include(context.Request);
            }
            catch (ScriptDiedException died)
            {
                // echo eventual status message
                died.ProcessStatus(phpctx);
            }
            finally
            {
                phpctx.Dispose();
                phpctx = null;
            }
        }
Пример #2
0
        public void ProcessRequest(HttpContext context)
        {
            Debug.Assert(context != null);
#if DEBUG
            // disables ASP.NET timeout if possible:
            try { context.Server.ScriptTimeout = Int32.MaxValue; } catch (HttpException) { }
#endif
            var phpctx = new RequestContextAspNet(context);

            try
            {
                // find and process requested file
                phpctx.Include(context.Request);
            }
            catch (ScriptDiedException died)
            {
                // echo eventual status message
                died.ProcessStatus(phpctx);
            }
            finally
            {
                phpctx.Dispose();
                phpctx = null;
            }
        }