I am consuming 2 WCF service in 1 WCF service.
I am calling a function that is returning endpoint name of suitable WCF service based on some logic. How to create object of WCF service based on endpoint name dynamically?
In below code I created WCF object of "Server1" WCF service but suppose method returns endpoint name "Server2Endpoint" then it would be a problem because I am referring WcfService.Server1
WcfService.Server1.MatrixCalculationClient Proxy1 = new WcfService.Server1.MatrixCalculationClient("Server1Endpoint");