Following is an app.config for the client together with a code snippet to set up up application instance-specific callback addresses.
<system.serviceModel>
<client>
<endpoint name="Duplex"
address="http://localhost/TecTvDuplex"
binding="wsDualHttpBinding"
bindingConfiguration="customizedCallbackBinding"
contract="ITecTv" />
</client>
<bindings>
<wsDualHttpBinding>
<binding name="customizedCallbackBinding"
clientBaseAddress="http://localhost:7777/TecTvClient/" />
</wsDualHttpBinding>
</bindings>
</system.serviceModel>
</configuration>
[...]
WSDualHttpBinding binding = (WSDualHttpBinding)proxy.Endpoint.Binding;
string clientCallbackAddress = binding.ClientBaseAddress.AbsoluteUri;
clientCallbackAddress += Guid.NewGuid().ToString();
binding.ClientBaseAddress = new Uri(clientCallbackAddress);
testing...
Posted by: Buddhike | 07/19/2006 at 12:31 PM
testing
Posted by: Buddhike | 07/19/2006 at 01:46 PM