C#,WCF,当重用一个客户端代理 [英] C#, WCF, When to reuse a client side proxy

查看:93
本文介绍了C#,WCF,当重用一个客户端代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写使用WCF来转移文件的应用程序。该转账分段完成,以便他们可以在任何意外中断后恢复。

Im writing an application which transfers files using WCF. The transfers are done in segments so that they can be resumed after any unforeseen interruption.

我的问题是关于使用客户端代理,是它更好地保持打开状态和重用它来传输每个文件段或我应该我想送点东西,每次重启吗?

My question concerns the use of the client side proxy, is it better to keep it open and reuse it to transfer each file segment or should I be reopening it each time I want to send something?

推荐答案

您可以重用您的WCF客户端代理,这将让你的客户端应用程序速度更快,因为代理只是将初始化一次。

You can reuse your WCF client proxy and that will make your client application faster, as proxy just will initialize once.

这篇关于C#,WCF,当重用一个客户端代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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