WCF 서비스와 클라이언트는 바인딩에 대해 동일한 설정 파일에서 동일한 설정을 공유 할 수 있습니까? 즉, 단일 바인딩 섹션을 작성하고 아무 것도 넣을 수 있으며 서비스 및 클라이언트에 적합한지 확인할 수 있습니까?서비스와 클라이언트간에 WCF 설정을 공유하십시오.
더 잘 설명하겠습니다. 이 같은 설정 파일이 있습니다
<services>
<service name="TestClass1">
<endpoint binding="basicHttpBinding" address="http://dev00:4322/host1/TestApplication1" contract="myApp.Interface.ITestApplication"/>
<endpoint binding="netTcpBinding" bindingConfiguration="Binding1" address="net.tcp://dev00:4321/host1/TestApplication1" contract="myApp.Interface.ITestApplication"/>
<endpoint binding="netNamedPipeBinding" address="net.pipe://localhost/host1/TestApplication1" contract="myApp.Interface.ITestApplication"/>
</service>
<service name="ManagementClass1">
<endpoint binding="netNamedPipeBinding" address="net.pipe://localhost/host1/ManagementApplication1" contract="myApp.Interface.IManagementApplication"/>
<endpoint binding="netTcpBinding" bindingConfiguration="Binding1" address="net.tcp://dev00:4321/host1/ManagementApplication1" contract="myApp.Interface.IManagementApplication"/>
</service>
</services>
<client>
<endpoint name="clientTestClass1Tcp"
address="net.tcp://dev00:4321/host1/TestApplication1"
binding="netTcpBinding"
bindingConfiguration="Binding1"
contract="myApp.Interface.ITestApplication"/>
<endpoint name="clientManagementClass1Tcp"
address="net.tcp://dev00:4321/host1/ManagementApplication1"
binding="netTcpBinding"
bindingConfiguration="Binding1"
contract="myApp.Interface.IManagementApplication"/>
</client>
<bindings>
<netTcpBinding>
<binding name="Binding1"
closeTimeout="00:00:10"
openTimeout="00:00:10"
receiveTimeout="00:01:00"
sendTimeout="00:01:00"
transactionFlow="false"
transferMode="Buffered"
transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard"
listenBacklog="10"
maxBufferPoolSize="524288"
maxBufferSize="65536"
maxConnections="30"
maxReceivedMessageSize="65536">
<security mode="None">
<transport clientCredentialType="None" />
</security>
</binding>
</netTcpBinding>
</bindings>
모든 내 통제하에있다. 서비스와 클라이언트간에 바인딩 (및 다른 섹션 ..)을 공유하는 것이 무엇이든간에 서비스와 클라이언트 모두에서 잘 작동하는지 확인할 수 있습니까?