/// <summary> /// 获取普通下载服务器链接信息 /// </summary> /// <param name="gid">任务标识符</param> /// <returns>成功返回服务器链接列表,失败返回空</returns> public static List <Aria2cLink> GetServers(string gid) { XmlRpcStruct[] xmlstruct = aria2c.GetServers(Aria2cRpcSecret, gid); List <Aria2cLink> servers = Aria2cTools.ConvertToAria2cServers(xmlstruct); return(servers); }
/// <summary> /// 获取普通下载服务器链接信息 /// </summary> /// <param name="gid">任务标识符</param> /// <returns>成功返回服务器链接列表,失败返回空</returns> public static List<Aria2cLink> GetServers(string gid) { XmlRpcStruct[] xmlstruct = aria2c.GetFiles(gid); List<Aria2cLink> servers = Aria2cTools.ConvertToAria2cServers(xmlstruct); return servers; }