internal void InternalShutdown(SocketShutdown how)
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this, $"how:{how}");
if (CleanedUp || _handle.IsInvalid)
{
return;
}
try
{
SocketPal.Shutdown(_handle, _isConnected, _isDisconnected, how);
}
catch (ObjectDisposedException) { }
}