Implementation of the 2.0 session state model
[mono.git] / mcs / class / System.Web / System.Web / HttpApplicationFactory.cs
index d86c79b04e3861858c3744f16e01425ec4d918b3..4fd011902838812f2c0222a5054e69b3a64f81e1 100644 (file)
@@ -298,6 +298,11 @@ namespace System.Web {
                }
 
                internal static void InvokeSessionEnd (object state)
+               {
+                       InvokeSessionEnd (state, null, EventArgs.Empty);
+               }
+               
+               internal static void InvokeSessionEnd (object state, object source, EventArgs e)
                {
                        HttpApplicationFactory factory = theFactory;
                        MethodInfo method = null;
@@ -312,7 +317,7 @@ namespace System.Web {
 
                        app.SetSession ((HttpSessionState) state);
                        try {
-                               method.Invoke (app, new object [] {app, EventArgs.Empty});
+                               method.Invoke (app, new object [] {(source == null ? app : source), e});
                        } catch (Exception) {
                                // Ignore
                        }