Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为 winforms 桌面应用程序构建自动更新程序。
下载更新时,如果客户的 Internet 连接中断,我如何提供恢复下载功能?
如果您正在做一个仅限 Windows 的应用程序,并且您的目标是 Windows XP 和更高版本的操作系统,您可以使用 BITS:后台智能传输服务。
它与 WindowsUpdate 使用的服务相同。
否则,使用 HTTP 自动恢复功能在 C# 中推出您的解决方案应该不会太难(使用 HTTP 请求中的 Accept-Range 指令)