internal void Close()
{
if (Logging.On)
{
Logging.Enter(Logging.HttpListener, this, "Close()", "");
}
try {
if (m_Response != null)
{
m_Response.Close();
}
}
finally {
try {
m_Request.Close();
}
finally {
IDisposable user = m_User == null ? null : m_User.Identity as IDisposable;
// For unsafe connection ntlm auth we dont dispose this identity as yet since its cached
if ((user != null) &&
(m_User.Identity.AuthenticationType != NTLM) &&
(!m_Listener.UnsafeConnectionNtlmAuthentication))
{
user.Dispose();
}
}
}
if (Logging.On)
{
Logging.Exit(Logging.HttpListener, this, "Close", "");
}
}