19 references to ConnectionRefused
aspire (2)
Backchannel\AuxiliaryBackchannelMonitor.cs (2)
530
catch (SocketException ex) when (ex.SocketErrorCode == SocketError.
ConnectionRefused
)
712
/// A connect that fails with <see cref="SocketError.
ConnectionRefused
"/> cannot distinguish an
Aspire.Cli.Tests (7)
Backchannel\AuxiliaryBackchannelMonitorTests.cs (1)
457
ConnectAsyncCallback = _ => ValueTask.FromException<Socket>(new SocketException((int)SocketError.
ConnectionRefused
))
Commands\RunCommandTests.cs (1)
2404
new SocketException((int)SocketError.
ConnectionRefused
)));
DotNet\DotNetCliRunnerTests.cs (3)
1493
ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.
ConnectionRefused
)
1533
ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.
ConnectionRefused
)
1575
ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.
ConnectionRefused
)
Projects\GuestAppHostProjectTests.cs (2)
1940
ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.
ConnectionRefused
)
1968
ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.
ConnectionRefused
)
Aspire.Hosting.Tests (1)
Utils\SocketExceptionHelpersTests.cs (1)
15
[InlineData(SocketError.
ConnectionRefused
, false)]
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",