当我的 nettcpbinding 在客户端的 c# 代码中设置并且在服务器上我的绑定在 app.config 中定义时,如何动态设置像 NONE 这样的安全模式?如何从客户端更改服务器的 app.config?
WCF 服务器端点:
<service name="Test.ServiceProvider.MyService">
<endpoint address="" binding="netTcpBinding" contract="Test.Contracts.IMyService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" name="NetTcpMetadataPoint"
contract="IMetadataExchange">
</endpoint>
</service>
WCF 客户端端点:Uri 是:
net.tcp//localhost:12345/MyService
1.) What else should my 2nd address be for the 2nd NetTcpBinding?
I guess I just change the MyService to MyEncryptedService and use the same interface? But then I have 2 equal classes/implementations of one interface. Thats stupid actually.
2.) How does the client binding find its server binding?