public void Close()
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this, nameof(Close));
try
{
if (NetEventSource.IsEnabled) NetEventSource.Info("HttpListenerRequest::Close()");
((IDisposable)this).Dispose();
}
catch (Exception exception)
{
if (NetEventSource.IsEnabled) NetEventSource.Error(this, $"Close {exception}");
throw;
}
finally
{
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
}
}