<System.ServiceModel>
實例:
<system.serviceModel>
<diagnostics performanceCounters="All" />
<services>
<service name="DotNet.Business.UserService" behaviorConfiguration="Internet">
<endpoint address="net.tcp://10.149.2.37:8800/DotNet.Business/UserService/" binding="netTcpBinding" bindingConfiguration="netTcpBindingSmiple" contract="DotNet.Business.IUserService">
</endpoint>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="Internet">
<serviceCredentials>
</serviceCredentials>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<netTcpBinding>
<binding name="netTcpBindingSmiple" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
<!-- 无任何加密模式-->
<security mode="None" >
<transport clientCredentialType="Windows" />
<message clientCredentialType="Windows" />
</security >
</binding>
</netTcpBinding>
</bindings>
</system.serviceModel>
屬性說明:
contract:获取服务终结点的协定。
name:获取或设置服务终结点的名称。