Angelo Lee's Blog
This is my kingdom .If i don't fight for it ,who will ?

可以对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>
posted on 2010-12-22 14:22  Angelo Lee  阅读(280)  评论(0编辑  收藏  举报