/// <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}"); } }
/// <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("-----------------------------------------------"); } }