wcf per-call,http-binding-idisposable pros cons [英] wcf per-call, http-binding - idisposable pros cons

查看:66
本文介绍了wcf per-call,http-binding-idisposable pros cons的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好专家,



如果我使用wcf服务,每个呼叫模式和http绑定

(不使用多个任何方法中的线程/线程)

now如果我在我的服务中实现IDisposible接口

会有任何性能问题吗?



在这个senerio中实现IDisposible接口是否安全?



我已经进行了谷歌搜索,但不同的文章让我感到困惑。

所以,如果你能提供帮助,我将不胜感激。

hello experts,

If I am using wcf service per-call mode and with http-binding
(not using multi-threading / thread in any method)
now If I implement IDisposible interface in my service
will there be any issue in performance?

Is it safe to implement IDisposible interface in this senerio?

I have done googling already but different-different articles makes me confuse.
so, if you can help I will be grateful.

推荐答案

如果您的服务是PerCall,那么为什么要让事情变得复杂。保持简单,让托管环境照顾您的服务实例生命周期。
if your service is PerCall then why make things complex. keep it simple and let the hosting environment take care of your service instance lifetime.


这篇关于wcf per-call,http-binding-idisposable pros cons的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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