自定义C#下载管理器. [英] custom c# download manager.

查看:58
本文介绍了自定义C#下载管理器.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


各位程序员,您好,我打算制作一个非常简单的下载管理器,该管理器基本上允许用户粘贴url并开始下载.浏览器应该能够通过暂停下载和退出(如果事件为关闭)来响应Windows事件,例如关闭,待机和注销.我正在使用C#2010,但我了解不多,好吧,我不知道可以使用单个代码进行下载.我急需的真正技巧是能够随意暂停下载并在启动时启动应用程序.我将不胜感激任何使用.net类下载和响应Windows事件的线索.


Hello fellow coders, am planning to make a really simple download manager that basically allows the user to paste a url and start downloading. The browser should be able to respond to windows events such as shutdown, stand by and logoff by pausing the download and exiting(if the event is shutdown). Am using c# 2010 but I dont know much, ok, I don''t know a single code to enable downloading. The real trick that I need badly is the ability to pause a download at will and launch the app on startup. I''ll be gratefull for any leads on which .net classes to use for downloading and responding to windows events.

推荐答案

这里是您可以使用的完整解决方案看

MyDownloader:多线程C#分段下载管理器 [ SharpBITS.NET-BITS API的包装 [ ^ ]-这将让您控制后台智能传输排队作业等服务
Here''s a full solution that you could look at

MyDownloader: A Multi-thread C# Segmented Download Manager[^]

Otherwise, you might want to look at SharpBits - SharpBITS.NET - A Wrapper for the BITS API[^] - this would let you control the Background Intelligent Transfer Service to queue jobs etc


这篇关于自定义C#下载管理器.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆