1 instantiation of NetEventSource
System.Net.Sockets (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38
public static readonly NetEventSource Log = new
NetEventSource
();
206 references to NetEventSource
System.Net.Sockets (206)
src\libraries\Common\src\System\Net\DebugSafeHandleMinusOneIsInvalid.cs (4)
20
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Creating SafeHandle");
25
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, _trace);
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38
public static readonly
NetEventSource
Log = new NetEventSource();
System\Net\Sockets\SafeSocketHandle.cs (6)
80
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"shouldClose={shouldClose}");
101
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"abortive={abortive}, shouldClose ={shouldClose}");
141
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle}");
System\Net\Sockets\SafeSocketHandle.Unix.cs (6)
245
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} Following 'non-abortive' branch.");
276
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle}, setsockopt():{errorCode}");
312
if (
NetEventSource
.Log.IsEnabled())
314
NetEventSource
.Info(this, remappedError ?
System\Net\Sockets\Socket.cs (163)
84
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, addressFamily);
281
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetAvailable returns errorCode:{errorCode}");
416
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"value:{value} willBlock:{_willBlock} willBlockInternal:{_willBlockInternal}");
453
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"_isConnected:{_isConnected}");
791
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, localEP);
795
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"localEP:{localEP}");
851
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"DST:{remoteEP}");
985
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"timeout = {_closeTimeout}");
995
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"timeout = {_closeTimeout}");
1014
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, backlog);
1051
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint}");
1093
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Accepted(socket, socket.RemoteEndPoint!, socket.LocalEndPoint);
1152
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}");
1163
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1199
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}");
1211
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1220
if (
NetEventSource
.Log.IsEnabled())
1222
NetEventSource
.Info(this, $"Send returns:{bytesTransferred}");
1223
NetEventSource
.DumpBuffer(this, buffer, offset, bytesTransferred);
1256
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1337
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"::SendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}");
1353
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} size:{size} remoteEP:{remoteEP}");
1376
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.DumpBuffer(this, buffer, offset, size);
1542
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}");
1553
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1562
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.DumpBuffer(this, buffer, offset, bytesTransferred);
1594
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1640
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}");
1651
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1713
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, errorCode);
1800
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, errorCode);
1815
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC{LocalEndPoint} size:{size} remoteEP:{remoteEP}");
1837
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
1882
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.DumpBuffer(this, buffer, offset, size);
1961
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
2037
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
2063
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"WindowsIoctl returns errorCode:{errorCode}");
2083
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}");
2092
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}");
2097
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetSockOpt returns errorCode:{errorCode}");
2118
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}");
2175
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetSockOpt optionLevel:{optionLevel} optionName:{optionName} returns errorCode:{errorCode}");
2210
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt returns errorCode:{errorCode}");
2235
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt returns errorCode:{errorCode}");
2259
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt returns errorCode:{errorCode}");
2296
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetRawSockOpt optionLevel:{optionLevel} optionName:{optionName} returned errorCode:{errorCode}");
2351
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"Poll returns socketCount:{(int)errorCode}");
2476
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"UnsafeNclNativeMethods.OSSOCK.DisConnectEx returns:{errorCode}");
2567
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"::DoBeginSendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}");
2667
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"size:{size}");
2682
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"size:{size} returning AsyncResult:{asyncResult}");
2812
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"how:{how}");
2817
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"Shutdown returns errorCode:{errorCode}");
2907
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.ConnectedAsyncDns(this);
3372
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
3381
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"connection to:{endPointSnapshot}");
3387
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Connected(this, LocalEndPoint, RemoteEndPoint);
3392
if (
NetEventSource
.Log.IsEnabled())
3396
NetEventSource
.Info(this, $"disposing:{disposing} Disposed:{Disposed}");
3417
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.Dispose()");
3430
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.CloseAsIs()");
3442
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} ioctlsocket(FIONBIO):{errorCode}");
3448
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.CloseAsIs()");
3455
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} shutdown():{errorCode}");
3463
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} setsockopt():{errorCode}");
3473
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} recv():{errorCode}");
3485
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} ioctlsocket(FIONREAD):{errorCode}");
3510
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.CloseAsIs() for non-owned handle");
3533
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"timeout = {_closeTimeout}");
3606
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "skipping the call");
3613
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetSockOpt returns errorCode:{errorCode}");
3647
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetMulticastOption returns errorCode:{errorCode}");
3661
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetIPv6MulticastOption returns errorCode:{errorCode}");
3676
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetLingerOption returns errorCode:{errorCode}");
3692
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetLingerOption returns errorCode:{errorCode}");
3708
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetMulticastOption returns errorCode:{errorCode}");
3725
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetIPv6MulticastOption returns errorCode:{errorCode}");
3758
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetBlocking returns errorCode:{errorCode}");
3767
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"errorCode:{errorCode} willBlock:{_willBlock} willBlockInternal:{_willBlockInternal}");
3850
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "now connected");
3896
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "!Disposed");
3913
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException, memberName: callerName);
3929
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, $"errorCode:{errorCode}, disconnectOnFailure:{disconnectOnFailure}");
3936
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Invalidating socket.");
System\Net\Sockets\SocketAsyncEventArgs.cs (5)
890
if (
NetEventSource
.Log.IsEnabled() && bytesTransferred > 0)
908
if (
NetEventSource
.Log.IsEnabled())
912
NetEventSource
.Accepted(_acceptSocket, _acceptSocket.RemoteEndPoint, _acceptSocket.LocalEndPoint);
929
if (
NetEventSource
.Log.IsEnabled())
933
NetEventSource
.Connected(_currentSocket!, _currentSocket!.LocalEndPoint, _currentSocket.RemoteEndPoint);
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (3)
333
Debug.Assert(
NetEventSource
.Log.IsEnabled());
337
NetEventSource
.DumpBuffer(this, _buffer, _offset, size);
341
NetEventSource
.DumpBuffer(this, _acceptBuffer, 0, size);
System\Net\Sockets\SocketPal.Unix.cs (6)
96
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(null, socket);
1153
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(null, socket);
2171
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(null, res);
System\Net\Sockets\TCPClient.cs (6)
33
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, family);
49
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, localEP);
61
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, hostname);
System\Net\Sockets\TCPListener.cs (4)
25
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, localEP);
36
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, localaddr);
System\Net\Sockets\UDPClient.cs (2)
222
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this);