Esempio n. 1
0
        public DownloadInfo CreateData()
        {
            var response = GetResponse();

            if (response == null)
            {
                throw new NullReferenceException("下载链接已失效");
            }

            var info = new DownloadInfo
            {
                ContentLength = response.ContentLength,
                DownloadUrl   = Url,
                DownloadPath  = DownloadPath,
            };

            info.Init();
            return(info);
        }