21 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)
464
ConnectAsyncCallback = _ => ValueTask.FromException<Socket>(new SocketException((int)SocketError.
ConnectionRefused
))
Commands\RunCommandTests.cs (1)
2415
new SocketException((int)SocketError.
ConnectionRefused
)));
DotNet\DotNetCliRunnerTests.cs (3)
1550
ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.
ConnectionRefused
)
1590
ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.
ConnectionRefused
)
1632
ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.
ConnectionRefused
)
Projects\GuestAppHostProjectTests.cs (2)
1996
ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.
ConnectionRefused
)
2024
ConnectAsyncCallback = (_, _) => throw new SocketException((int)SocketError.
ConnectionRefused
)
Aspire.Hosting.Native.Server (2)
Dashboard\DcpDashboard.cs (1)
88
SocketException { SocketErrorCode: SocketError.
ConnectionRefused
})
src\Shared\DcpConnectionMaterial.cs (1)
141
InnerException: SocketException { SocketErrorCode: SocketError.
ConnectionRefused
} or AuthenticationException
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",