private List AvailableBrokerEndpoints()

in rocketmq-client-csharp/Client.cs [121:136]


        private List<string> AvailableBrokerEndpoints()
        {
            List<string> endpoints = new List<string>();
            foreach (var item in _topicRouteTable)
            {
                foreach (var partition in item.Value.MessageQueues)
                {
                    string endpoint = Utilities.TargetUrl(partition);
                    if (!endpoints.Contains(endpoint))
                    {
                        endpoints.Add(endpoint);
                    }
                }
            }
            return endpoints;
        }