如何在ftp中添加简单的暂停,恢复,停止和启动#下载 [英] how to add simple pause, resume, stop, and start in ftp # download

查看:107
本文介绍了如何在ftp中添加简单的暂停,恢复,停止和启动#下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在ftp c#下载中添加启动,停止,暂停和恢复功能.
香港专业教育学院检查了太多的代码,但都是通过线程实现的.
有没有更简单易懂的方法来实现此功能.
如果您能帮助我,我将非常感谢您....

i want to add start, stop ,pause and resume functionality in ftp c# download.
ive checked so many codes but there are implemented through threading.
is there any simpler and easy to understand way to implement this functionality.
i''ll by thankful to u if u help me....

推荐答案

如果您不希望它具有响应能力,那么您就不会了"不需要线程,只需从线程中拉出找到的代码即可.
If you don''t want it to be responsive, then you don''t need threads, just pull the code you found out of the threads.


我已经使用线程实现了该功能.但是现在我遇到了一个大问题.当我尝试时中止线程会出现异常消息
如果我向客户退货我的产品,该线程已终止.您能告诉我如何删除此异常消息吗?
如果您能帮助我,我将不胜感激.
i''ve implemented the functionality with threads.but now i''m facing a big problem.when i try to abort the thread an exception message occurs
that THREAD HAS BEEN ABORTED which sounds very ood IF i delieverd my product to my customer.CAN you plzz tell me how to remove this exception message
I''LL BE THANKFUL TO U IF U HELP ME....


这篇关于如何在ftp中添加简单的暂停,恢复,停止和启动#下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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