Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 public bool RemoveServer(Aria2cServerLink server)
 {
     return(_serverList.Remove(server));
 }
Esempio n. 3
0
 public void AddServer(Aria2cServerLink server)
 {
     _serverList.Add(server);
 }