How do I set dns programmatically like doing for other configuration as below?
<endpoint address="https://admin.icafems.com/Services/EasyStartTrackingService.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IEasyStartTrackingService"
contract="ES_Service.IEasyStartTrackingService" name="WSHttpBinding_IEasyStartTrackingService">
<identity>
<dns value="admin.icafems.com" />
</identity>
</endpoint>
ServiceClient.Endpoint.Address = new EndpointAddress(ServiceURL);
ServiceClient.Endpoint.Binding = binding;
ServiceClient.Endpoint.Name = "BasicHttpBinding_ILearningSuiteService";
You pass an EndpointIdentity to the constructor of the EndpointAddress
http://msdn.microsoft.com/en-us/library/bb628618.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With