WCF 流式传输和恢复选项
我有一个需要实现的场景。也就是说,我的服务器需要实现 WCF 来接受大文件(500MB - 1GB)并支持在连接因任何原因断开时恢复。我正在考虑为此使用 WCF 流,但我想知道是否以某种方式支持开箱即用的恢复,或者我是否需要为此实现自定义处理。 对于我的情况,最好的行动方案是什么? 示例链接将不胜感激。
I have a scenario that I need to implement. Namely, my server needs to implement WCF that would accept large files (500MB - 1GB) and support resuming in case the connection drops for any reason. I was thinking of using WCF streaming for this, but I was wondering if resuming is somehow supported out of the box or do I need to implement custom handling for this.
What is the best course of action for in my case?
Links to examples would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
上传和下载方法应接受控制下载/上传位置的参数。
我不确定这是开箱即用的实现/支持。 WCF 服务必须有一个兼容这种方法的客户端。
查看完整代码。
http://www.abhisheksur.com/2010/09/progress-streamed-file-download-and.html
您可能会发现有用的其他链接:
分块频道
Windows Communication Foundation 可靠消息传递简介
Upload and download methods should accept a parameter that controls the position of download/upload.
I am not sure this is implemented/supported out of the box. The WCF service must have a compatible client for this kind of approach.
Check this out for complete code.
http://www.abhisheksur.com/2010/09/progress-streamed-file-download-and.html
Other links you might find useful:
Chunking Channel
Introduction to Reliable Messaging with the Windows Communication Foundation