We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be0a7e9 commit 1b94cb2Copy full SHA for 1b94cb2
projects/RabbitMQ.Client/client/api/DefaultEndpointResolver.cs
@@ -47,7 +47,11 @@ public DefaultEndpointResolver (IEnumerable<AmqpTcpEndpoint> tcpEndpoints)
47
48
public IEnumerable<AmqpTcpEndpoint> All()
49
{
50
+#if NET6_0_OR_GREATER
51
+ return _endpoints.OrderBy(item => Random.Shared.Next());
52
+#else
53
return _endpoints.OrderBy(item => _rnd.Next());
54
+#endif
55
}
56
57
0 commit comments