WCF [英] WCF

查看:102
本文介绍了WCF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在远程处理的情况下我可以在配置文件中配置singleton,singlecall

在WCf的情况下我们使用属性
[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Single,InstanceContextMode = InstanceContextMode.PerCall )]如果需要更改我必须打开代码并更改它,有没有办法在配置中执行。

我是WCF

In case of remoting i can configure singleton, singlecall in config file

In case of WCf we are using attribute
 [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Single, InstanceContextMode = InstanceContextMode.PerCall)]
So if there needs a change i have to open the code and change it, is there a way to do it in config.

I am new to WCF

推荐答案

没有。 ServiceBehaviorAttribute用于描述实现(代码)。我们的想法是,如果它发生变化,代码也必须改变。

-Steve
No. ServiceBehaviorAttribute is used to describe the implementation (code). The idea is that if it changes, the code would have to be changed as well.

     -Steve


这篇关于WCF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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