可以对Endpoint中binding参数进行设置。每种绑定类型可拥有多个名称(name)不同的参数设置,然后在Endpoint的bindingConfiguration 属性中指定关联设置名称即可。
<system.serviceModel>
<services>
<service name = "MyService">
<endpoint
address = "net.tcp://localhost:8000/MyService/"
bindingConfiguration = "TransactionalTCP"
binding = "netTcpBinding"
contract = "IMyContract"
/>
</service>
</services>
<bindings>
<netTcpBinding>
<binding name = "TransactionalTCP"
transactionFlow = "true"
/>
</netTcpBinding>
</bindings>
</system.serviceModel>