【发布时间】:2011-01-11 12:41:26
【问题描述】:
如果我在 app.config 和代码中设置一个设置,将使用哪一个?
例子:
Dim instance As ServiceThrottlingBehavior
Dim value As Integer
value = instance.MaxConcurrentInstances
instance.MaxConcurrentInstances = value
VS
<configuration>
<system.serviceModel>
<services>
<behaviors>
<serviceBehaviors>
<behavior name="Throttled">
<serviceThrottling
maxConcurrentInstances="1"
/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
【问题讨论】:
标签: wcf settings app-config