private void DisposeHttpApplication()
{
HttpApplication httpApplication = this.httpApplication;
this.httpApplication = null;
if (httpApplication != null)
{
try
{
MethodInfo method = HttpApplicationProbe.FindExitPoint(httpApplication.GetType());
if (method != null)
{
this.logger.Info("Invoking exit point for HTTP application {0}.", httpApplication.GetType().FullName);
this.InvokeEventHandler(httpApplication, method);
}
else
{
this.logger.Info("No exit point found for HTTP application {0}.", httpApplication.GetType().FullName);
}
}
finally
{
httpApplication.Dispose();
}
}
}