Author: gonzalo
Date: 2005-05-08 21:09:45 -0400 (Sun, 08 May 2005)
New Revision: 44232

Modified:
   trunk/xsp/server/MonoWorkerRequest.cs
Log:
No need to use the event in the previous patch

Modified: trunk/xsp/server/MonoWorkerRequest.cs
===================================================================
--- trunk/xsp/server/MonoWorkerRequest.cs       2005-05-09 01:00:49 UTC (rev 
44231)
+++ trunk/xsp/server/MonoWorkerRequest.cs       2005-05-09 01:09:45 UTC (rev 
44232)
@@ -86,7 +86,6 @@
                string hostPath;
                EndOfSendNotification end_send;
                object end_send_data;
-               static EndOfRequestHandler eor = new EndOfRequestHandler 
(OnEndOfRequest);
 
                public MonoWorkerRequest (IApplicationHost appHost)
                        : base (String.Empty, String.Empty, null)
@@ -95,7 +94,6 @@
                                throw new ArgumentNullException ("appHost");
 
                        appHostBase = appHost;
-                       EndOfRequestEvent += eor;
                }
 
                public event MapPathEventHandler MapPathEvent;
@@ -237,17 +235,13 @@
                        HttpRuntime.ProcessRequest (this);
                }
 
-               static void OnEndOfRequest (HttpWorkerRequest req)
-               {
-                       MonoWorkerRequest mwr = (MonoWorkerRequest) req;
-                       if (mwr.end_send != null)
-                               mwr.end_send (mwr, mwr.end_send_data);
-               }
-
                public override void EndOfRequest ()
                {
                        if (EndOfRequestEvent != null)
                                EndOfRequestEvent (this);
+
+                       if (end_send != null)
+                               end_send (this, end_send_data);
                }
                
                public override void SetEndOfSendNotification 
(EndOfSendNotification callback, object extraData)

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

Reply via email to