System.Web.HttpApplicationFactory.FireOnAppEnd C# (CSharp) Method

FireOnAppEnd() private method

private FireOnAppEnd ( ) : void
return void
		void FireOnAppEnd ()
		{
			if (app_type == null)
				return; // we didn't even get an application

			HttpApplication app = (HttpApplication) Activator.CreateInstance (app_type, true);
			FireEvent ("Application_End", app, new object [] {new object (), EventArgs.Empty});
			app.DisposeInternal ();
			app_type = null;
		}

Usage Example

Example #1
0
 //
 // This is invoked by HttpRuntime.Dispose, when we unload an AppDomain
 // To reproduce this in action, touch "global.asax" while XSP is running.
 //
 public static void Dispose()
 {
     theFactory.FireOnAppEnd();
 }