71 references to SocketException
Aspire.Cli.Tests (6)
Commands\RunCommandTests.cs (1)
2358new SocketException((int)SocketError.ConnectionRefused)));
DotNet\DotNetCliRunnerTests.cs (3)
1121ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.ConnectionRefused) 1161ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.ConnectionRefused) 1203ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.ConnectionRefused)
Projects\GuestAppHostProjectTests.cs (2)
1354ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.ConnectionRefused) 1382ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.ConnectionRefused)
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (2)
486throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SocketException((int)_asyncWriteEventArgs.SocketError)); 725throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SocketException((int)_asyncReadEventArgs.SocketError));
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Internal\SocketAwaitableEventArgs.cs (1)
61return new SocketException((int)e);
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (3)
ExceptionSummarizerTests.cs (1)
185var exception = new Exception("test", new SocketException((int)SocketError.TimedOut));
HttpExceptionSummaryProviderTests.cs (2)
94Exception exception = new SocketException((int)socketError); 105Exception exception = new SocketException(errorCode);
System.Net.NameResolution (3)
System\Net\Dns.cs (2)
487exception = new SocketException((int)SocketError.HostNotFound); 998new SocketException((int)error) { HResult = nativeError };
System\Net\DnsSocket.cs (1)
109throw new SocketException((int)SocketError.TimedOut);
System.Net.Ping (1)
src\runtime\src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (1)
29throw new SocketException((int)SocketError.AddressFamilyNotSupported);
System.Net.Primitives (1)
src\runtime\src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (1)
29throw new SocketException((int)SocketError.AddressFamilyNotSupported);
System.Net.Quic (6)
src\runtime\src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (1)
29throw new SocketException((int)SocketError.AddressFamilyNotSupported);
System\Net\Quic\Internal\ThrowHelper.cs (4)
83if (status == QUIC_STATUS_INVALID_ADDRESS) return new SocketException((int)SocketError.AddressNotAvailable); 84if (status == QUIC_STATUS_ADDRESS_IN_USE) return new SocketException((int)SocketError.AddressAlreadyInUse); 85if (status == QUIC_STATUS_UNREACHABLE) return new SocketException((int)SocketError.HostUnreachable); 86if (status == QUIC_STATUS_ADDRESS_NOT_AVAILABLE) return new SocketException((int)SocketError.AddressFamilyNotSupported);
System\Net\Quic\QuicConnection.cs (1)
401throw new SocketException((int)SocketError.HostNotFound);
System.Net.Security (8)
System\Net\Security\TlsSession.cs (8)
2050throw new SocketException((int)drainErr); 2085throw new SocketException((int)sendErr); 2114throw new SocketException((int)recvErr); 2211throw new SocketException((int)recvErr); 2245throw new SocketException((int)drainErr); 2288throw new SocketException((int)sendErr); 2335throw new SocketException((int)leftoverErr); 2362throw new SocketException((int)sendErr);
System.Net.Sockets (38)
src\runtime\src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (1)
29throw new SocketException((int)SocketError.AddressFamilyNotSupported);
System\Net\Sockets\Socket.cs (19)
92throw new SocketException((int)errorCode); 1136throw new SocketException((int)errorCode); 1165if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1187throw new SocketException((int)errorCode); 1213if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1240throw new SocketException((int)errorCode); 1258if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1539throw new SocketException((int)errorCode); 1562if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1585throw new SocketException((int)errorCode); 1603if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1630throw new SocketException((int)errorCode); 1660if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1844socketException = new SocketException((int)errorCode); 1968socketException = new SocketException((int)errorCode); 2044SocketException socketException = new SocketException((int)errorCode); 2428throw new SocketException((int)errorCode); 3928var socketException = new SocketException((int)error); 4054throw new SocketException((int)SocketError.IsConnected);
System\Net\Sockets\Socket.Tasks.cs (3)
162throw new SocketException((int)SocketError.IsConnected); 903Exception e = ExceptionDispatchInfo.SetCurrentStackTrace(new SocketException((int)error)); 1370Exception e = new SocketException((int)error);
System\Net\Sockets\Socket.Unix.cs (4)
73throw new SocketException((int)SocketError.NotSocket); 81throw new SocketException((int)SocketError.NotSocket); 127throw new SocketException((int)errorCode); 192throw new SocketException((int)SocketError.InvalidArgument);
System\Net\Sockets\SocketAsyncContext.Unix.cs (1)
1378throw new SocketException((int)SocketPal.GetSocketErrorForErrorCode(Interop.Sys.GetLastError()));
System\Net\Sockets\SocketAsyncEventArgs.cs (2)
839caughtException = new SocketException((int)lastError); 844caughtException = new SocketException((int)SocketError.OperationAborted);
System\Net\Sockets\SocketPal.Unix.cs (4)
2123throw new SocketException((int)error); 2134throw new SocketException((int)error); 2180throw new SocketException((int)GetSocketErrorForErrorCode(err)); 2194throw new SocketException((int)errorCode);
System\Net\Sockets\UDPClient.cs (4)
432throw new SocketException((int)SocketError.OperationNotSupported); 452throw new SocketException((int)SocketError.OperationNotSupported); 520throw new SocketException((int)SocketError.OperationNotSupported); 800throw new SocketException((int)SocketError.NotConnected);
System.ServiceModel.NetTcp (1)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (1)
103return new SocketException((int)e);
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (1)
103return new SocketException((int)e);