I am creating one application that uses WCF to call multiple external endpoints. All remote endpoints are identical except for the URI. I would like to consider them as a pool: add and delete endpoints through the configuration and ask the application to understand what to do.
My initial plan was to define one endoint in app.config, then iterate over my list of endpoints and update client.Endpoint.Address on the fly to point to the right place. Unfortunately, this property is read-only, which makes the plan inoperative.
I'm a little here. Any suggestions on how I can do this?
Jacob source
share