Delete NetEventSource.IsEnabled (#44901)
authorStephen Toub <stoub@microsoft.com>
Thu, 19 Nov 2020 19:50:16 +0000 (14:50 -0500)
committerGitHub <noreply@github.com>
Thu, 19 Nov 2020 19:50:16 +0000 (14:50 -0500)
commit8bbbf6d673dee68890b39995303d2054765a0eed
tree675f07f6c60e7343494d9ae9a5b7aa38ce2a2210
parent75c0b990ce249d6c37adfa4037ef3ba5b280085c
Delete NetEventSource.IsEnabled (#44901)

* Delete NetEventSource.IsEnabled

These were all meant to be changed to NetEventSource.Log.IsEnabled(), and there are almost 900 occurrences of that pattern.  But there are still 9 stragglers, and the method itself.  Deleting the method and fixing the call sites.

* Fix uses in NetEventSource itself
src/libraries/Common/src/Interop/Windows/SspiCli/SSPIWrapper.cs
src/libraries/Common/src/Interop/Windows/SspiCli/SecuritySafeHandles.cs
src/libraries/Common/src/System/Net/Http/aspnetcore/NetEventSource.Common.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http3RequestStream.cs
src/libraries/System.Net.NameResolution/src/System/Net/NameResolutionPal.Windows.cs
src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/MsQuic/MsQuicStream.cs
src/libraries/System.Net.Security/src/System/Net/Security/SslStreamCertificateContext.Windows.cs
src/libraries/System.Net.Security/src/System/Net/Security/SslStreamCertificateContext.cs
src/libraries/System.Net.Security/src/System/Net/Security/SslStreamPal.Windows.cs