17 references to ConnectionRefused
aspire (2)
Backchannel\AuxiliaryBackchannelMonitor.cs (2)
490
catch (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)
2001
new SocketException((int)SocketError.
ConnectionRefused
)));
DotNet\DotNetCliRunnerTests.cs (3)
1110
ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.
ConnectionRefused
)
1150
ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.
ConnectionRefused
)
1192
ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.
ConnectionRefused
)
Projects\GuestAppHostProjectTests.cs (2)
1086
ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.
ConnectionRefused
)
1114
ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.
ConnectionRefused
)
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
TcpEndpointProbesServiceTests.cs (1)
109
if (e.SocketErrorCode == SocketError.
ConnectionRefused
)
System.IO.Pipes (1)
System\IO\Pipes\NamedPipeClientStream.Unix.cs (1)
69
case SocketError.
ConnectionRefused
:
System.Net.Ping (2)
src\runtime\src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
31
Interop.Error.ECONNREFUSED => SocketError.
ConnectionRefused
,
81
SocketError.
ConnectionRefused
=> Interop.Error.ECONNREFUSED,
System.Net.Primitives (2)
src\runtime\src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
31
Interop.Error.ECONNREFUSED => SocketError.
ConnectionRefused
,
81
SocketError.
ConnectionRefused
=> Interop.Error.ECONNREFUSED,
System.Net.Sockets (3)
src\runtime\src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
31
Interop.Error.ECONNREFUSED => SocketError.
ConnectionRefused
,
81
SocketError.
ConnectionRefused
=> Interop.Error.ECONNREFUSED,
System\Net\Sockets\SocketsTelemetry.cs (1)
253
SocketError.
ConnectionRefused
=> "connection_refused",