WCF Client - Change Endpoint Address Dynamically

Following is the code to change Endpoint address at WCF Client.

using(abcServiceClient proxy = new ABCServiceClient())
 

{
proxy.Endpoint.Address =  new System.ServiceModel.EndpointAddress("net.tcp://localhost:8082/ABCService"
);
proxy.Open();
proxy.Function();
}
 

 

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading


Prashant Devkota


I am an experienced technical consultant who has excellent track record on implementation of business solutions using Microsoft and non-Microsoft technologies. I have strong knowledge and background especially in Microsoft technologies and have applied this in various business solutions. I have gained 6 years of valuable experience in all aspects of software development from initial analysis through to development and support. I have capability to work well with both the business and technical users.



Tag cloud