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.
2 parents b15ee09 + 35e5cdc commit 186abddCopy full SHA for 186abdd
projects/RabbitMQ.Client/client/api/DefaultEndpointResolver.cs
@@ -47,6 +47,10 @@ 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
0 commit comments