17 references to ConnectionRefused
aspire (2)
Backchannel\AuxiliaryBackchannelMonitor.cs (2)
490catch (SocketException ex) when (ex.SocketErrorCode == SocketError.ConnectionRefused) 660/// A connect that fails with <see cref="SocketError.ConnectionRefused"/> cannot distinguish an
Aspire.Cli.Tests (6)
Commands\RunCommandTests.cs (1)
2001new SocketException((int)SocketError.ConnectionRefused)));
DotNet\DotNetCliRunnerTests.cs (3)
1110ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.ConnectionRefused) 1150ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.ConnectionRefused) 1192ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.ConnectionRefused)
Projects\GuestAppHostProjectTests.cs (2)
1086ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.ConnectionRefused) 1114ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.ConnectionRefused)
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
TcpEndpointProbesServiceTests.cs (1)
109if (e.SocketErrorCode == SocketError.ConnectionRefused)
System.IO.Pipes (1)
System\IO\Pipes\NamedPipeClientStream.Unix.cs (1)
69case SocketError.ConnectionRefused:
System.Net.Ping (2)
src\runtime\src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
31Interop.Error.ECONNREFUSED => SocketError.ConnectionRefused, 81SocketError.ConnectionRefused => Interop.Error.ECONNREFUSED,
System.Net.Primitives (2)
src\runtime\src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
31Interop.Error.ECONNREFUSED => SocketError.ConnectionRefused, 81SocketError.ConnectionRefused => Interop.Error.ECONNREFUSED,
System.Net.Sockets (3)
src\runtime\src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
31Interop.Error.ECONNREFUSED => SocketError.ConnectionRefused, 81SocketError.ConnectionRefused => Interop.Error.ECONNREFUSED,
System\Net\Sockets\SocketsTelemetry.cs (1)
253SocketError.ConnectionRefused => "connection_refused",