// set callback port for dual HTTP binding as another channel is required. Not for npipe, tcpip.
WSDualHttpBinding binding = cf.Endpoint.Binding as WSDualHttpBinding;
if (binding != null)
{
int port = int.Parse((string)ConfigurationManager.AppSettings["DeviceServerCallbackPort"]);
binding.ClientBaseAddress = new Uri(cf.Endpoint.Address.Uri.Scheme + "://"
+ System.Environment.MachineName + ":" + port + "/" + typeof(IDeviceServerService).Name);
}
No comments:
Post a Comment