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
();
214 references to NetEventSource
System.Net.Sockets (214)
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)
196
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} Following 'non-abortive' branch.");
227
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle}, setsockopt():{errorCode}");
263
if (
NetEventSource
.Log.IsEnabled())
265
NetEventSource
.Info(this, remappedError ?
System\Net\Sockets\SafeSocketHandle.Unix.OptionTracking.cs (8)
45
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetLingerOption returned errorCode:{errorCode}");
74
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt({level},{name}) returned errorCode:{errorCode}");
91
if (
NetEventSource
.Log.IsEnabled() && errorCode != SocketError.Success)
NetEventSource
.Info(this, $"SetLingerOption returned errorCode:{errorCode}");
104
if (
NetEventSource
.Log.IsEnabled() && errorCode != SocketError.Success)
NetEventSource
.Info(this, $"GetSockOpt({level},{name}) returned errorCode:{errorCode}");
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}");
983
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"timeout = {_closeTimeout}");
993
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"timeout = {_closeTimeout}");
1012
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, backlog);
1049
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint}");
1091
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Accepted(socket, socket.RemoteEndPoint!, socket.LocalEndPoint);
1150
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}");
1161
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1197
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}");
1209
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1218
if (
NetEventSource
.Log.IsEnabled())
1220
NetEventSource
.Info(this, $"Send returns:{bytesTransferred}");
1221
NetEventSource
.DumpBuffer(this, buffer, offset, bytesTransferred);
1254
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1335
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"::SendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}");
1351
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} size:{size} remoteEP:{remoteEP}");
1374
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.DumpBuffer(this, buffer, offset, size);
1540
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}");
1551
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1560
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.DumpBuffer(this, buffer, offset, bytesTransferred);
1592
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1638
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}");
1649
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1711
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, errorCode);
1798
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, errorCode);
1813
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC{LocalEndPoint} size:{size} remoteEP:{remoteEP}");
1835
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
1880
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.DumpBuffer(this, buffer, offset, size);
1959
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
2035
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
2061
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"WindowsIoctl returns errorCode:{errorCode}");
2081
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}");
2090
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}");
2095
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetSockOpt returns errorCode:{errorCode}");
2116
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}");
2173
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetSockOpt optionLevel:{optionLevel} optionName:{optionName} returns errorCode:{errorCode}");
2208
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt returns errorCode:{errorCode}");
2233
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt returns errorCode:{errorCode}");
2257
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt returns errorCode:{errorCode}");
2294
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetRawSockOpt optionLevel:{optionLevel} optionName:{optionName} returned errorCode:{errorCode}");
2349
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"Poll returns socketCount:{(int)errorCode}");
2474
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"UnsafeNclNativeMethods.OSSOCK.DisConnectEx returns:{errorCode}");
2565
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"::DoBeginSendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}");
2665
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"size:{size}");
2680
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"size:{size} returning AsyncResult:{asyncResult}");
2810
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"how:{how}");
2815
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"Shutdown returns errorCode:{errorCode}");
2906
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.ConnectedAsyncDns(this);
3367
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
3376
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"connection to:{endPointSnapshot}");
3382
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Connected(this, LocalEndPoint, RemoteEndPoint);
3387
if (
NetEventSource
.Log.IsEnabled())
3391
NetEventSource
.Info(this, $"disposing:{disposing} Disposed:{Disposed}");
3412
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.Dispose()");
3425
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.CloseAsIs()");
3437
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} ioctlsocket(FIONBIO):{errorCode}");
3443
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.CloseAsIs()");
3450
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} shutdown():{errorCode}");
3458
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} setsockopt():{errorCode}");
3468
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} recv():{errorCode}");
3480
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} ioctlsocket(FIONREAD):{errorCode}");
3505
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.CloseAsIs() for non-owned handle");
3528
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"timeout = {_closeTimeout}");
3601
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "skipping the call");
3608
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetSockOpt returns errorCode:{errorCode}");
3642
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetMulticastOption returns errorCode:{errorCode}");
3656
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetIPv6MulticastOption returns errorCode:{errorCode}");
3671
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetLingerOption returns errorCode:{errorCode}");
3687
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetLingerOption returns errorCode:{errorCode}");
3703
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetMulticastOption returns errorCode:{errorCode}");
3720
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetIPv6MulticastOption returns errorCode:{errorCode}");
3753
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetBlocking returns errorCode:{errorCode}");
3762
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"errorCode:{errorCode} willBlock:{_willBlock} willBlockInternal:{_willBlockInternal}");
3845
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "now connected");
3891
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "!Disposed");
3908
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException, memberName: callerName);
3924
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, $"errorCode:{errorCode}, disconnectOnFailure:{disconnectOnFailure}");
3931
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Invalidating socket.");
System\Net\Sockets\SocketAsyncEventArgs.cs (5)
898
if (
NetEventSource
.Log.IsEnabled() && bytesTransferred > 0)
916
if (
NetEventSource
.Log.IsEnabled())
920
NetEventSource
.Accepted(_acceptSocket, _acceptSocket.RemoteEndPoint, _acceptSocket.LocalEndPoint);
937
if (
NetEventSource
.Log.IsEnabled())
941
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);