/// <summary> /// 将rpc信息转换到服务器地址信息中 /// </summary> /// <param name="rpcStruct"></param> /// <returns>服务器信息地址列表</returns> public static List <Aria2cServerLink> ConvertToAria2cServerLink(params XmlRpcStruct[] rpcStruct) { List <Aria2cServerLink> linkList = new List <Aria2cServerLink>(); foreach (XmlRpcStruct rpc in rpcStruct) { Aria2cServerLink serverLink = new Aria2cServerLink(rpc); linkList.Add(serverLink); } return(linkList); }
public bool RemoveServer(Aria2cServerLink server) { return(_serverList.Remove(server)); }
public void AddServer(Aria2cServerLink server) { _serverList.Add(server); }