Beispiel #1
0
        /// <summary>
        /// 查询成员
        /// </summary>
        private static void QueryMembers()
        {
            var agentGovern = new AgentGovern();

            foreach (var member in agentGovern.ListMembers().GetAwaiter().GetResult())
            {
                Console.WriteLine($"Name:{member.Name} 地址:{member.Addr}:{member.Port}");
            }
        }
Beispiel #2
0
        /// <summary>
        /// List Members
        /// </summary>
        private static void ListMembers()
        {
            var agentGovern = new AgentGovern();
            var list        = agentGovern.ListMembers(new ListMembersParmeter {
                Wan = true
            }).GetAwaiter().GetResult();

            foreach (var item in list)
            {
                Console.WriteLine(EntityToString(item));
                Console.WriteLine("-----------------------------------------------");
            }
        }