예제 #1
0
        /// <summary>
        /// 设置全局下载设置
        /// </summary>
        /// <param name="option">设置信息</param>
        /// <returns>成功返回true, 失败返回fale</returns>
        public static bool ChangeGlobalOption(Aria2cOption option)
        {
            string ok = aria2c.ChangeGlobalOption(Aria2cRpcSecret, option.ToXmlRpcStruct());

            return(IsOK(ok));
        }
예제 #2
0
        /// <summary>
        /// 下载任务设置
        /// </summary>
        /// <param name="gid">任务标识符</param>
        /// <param name="options">设置参数</param>
        /// <returns>成功返回true, 失败返回fale</returns>
        public static bool ChangeOption(string gid, Aria2cOption option)
        {
            string ok = aria2c.ChangeOption(gid, option.ToXmlRpcStruct());

            return(IsOK(ok));
        }