Author: miguel
Date: 2005-07-14 16:59:25 -0400 (Thu, 14 Jul 2005)
New Revision: 47321

Added:
   trunk/xsp/test/1.1/runtime/
   trunk/xsp/test/1.1/runtime/global.asax
Log:
Test to dump state at various stages

Added: trunk/xsp/test/1.1/runtime/global.asax
===================================================================
--- trunk/xsp/test/1.1/runtime/global.asax      2005-07-14 18:55:07 UTC (rev 
47320)
+++ trunk/xsp/test/1.1/runtime/global.asax      2005-07-14 20:59:25 UTC (rev 
47321)
@@ -0,0 +1,88 @@
+<script runat="server" language="c#">
+       void Dump (string s, object o, EventArgs args)
+       {
+               Console.WriteLine (s);
+               //Console.WriteLine ("Object is: {0}", o.GetType ().BaseType);
+               //Console.WriteLine ("Args is: {0} {1} {2}", args.GetType (), 
args.ToString (), args == EventArgs.Empty);
+               //Console.WriteLine (Environment.StackTrace);
+       }
+
+       void Application_Start (object o, EventArgs args)
+       {
+               Dump ("Start", o, args);
+       }
+
+       void Application_End (object o, EventArgs args)
+       {
+               Dump ("End", o, args);
+               Console.WriteLine (Environment.StackTrace);
+       }
+
+       void Application_BeginRequest (object o, EventArgs args)
+       {
+               Dump ("BeginRequest", o, args);
+               if (Request.FilePath == "/index.aspx" && 
Environment.Version.Major == 2)
+                       Response.Redirect ("/index2.aspx");
+       }
+
+       void Application_AuthenticateRequest (object o, EventArgs args)
+       {
+               Dump ("AuthenticateRequest", o, args);
+       }       
+
+       void Application_AuthorizeRequest (object o, EventArgs args)
+       {
+               throw new Exception ();
+               Dump ("AuthorizeRequest", o, args);
+       }       
+       void Application_ResolveRequestCache (object o, EventArgs args)
+       {
+               Dump ("ResolveRequestCache", o, args);
+       }       
+       void Application_AcquireRequestState (object o, EventArgs args)
+       {
+               Dump ("AcquireRequestState", o, args);
+       }       
+
+       void Application_PreRequestHandlerExecute (object o, EventArgs args)
+       {
+               Dump ("PreRequestHandlerExecute", o, args);
+       }       
+
+       //
+
+       void Application_PostRequestHandlerExecute (object o, EventArgs args)
+       {
+               Dump ("PostRequestHandlerExecute", o, args);
+       }       
+
+       void Application_ReleaseRequestState (object o, EventArgs args)
+       {
+               Dump ("ReleaseRequestState", o, args);
+       }       
+
+       void Application_UpdateRequestCache (object o, EventArgs args)
+       {
+               Dump ("UpdateRequestCache", o, args);
+       }       
+
+       void Application_EndRequest (object o, EventArgs args)
+       {
+               Dump ("EndRequest", o, args);
+       }       
+
+       void Application_PreSendRequestHeaders (object o, EventArgs args)
+       {
+               Dump ("PreSendRequestHeaders", o, args);
+       }       
+       void Application_PreSendRequestContent (object o, EventArgs args)
+       {
+               Dump ("PreSendRequestContent", o, args);
+       }       
+       void Application_Error (object o, EventArgs args)
+       {
+               Dump ("Error", o, args);
+       }       
+
+       
+</script>


Property changes on: trunk/xsp/test/1.1/runtime/global.asax
___________________________________________________________________
Name: svn:executable
   + *

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to