Managing multiple WCF endpoints for the same service

Posted by Jacob on Stack Overflow See other posts from Stack Overflow or by Jacob
Published on 2010-04-13T16:42:22Z Indexed on 2010/04/13 16:43 UTC
Read the original article Hit count: 300

Filed under:
|
|

I am building an single application that uses WCF to call out to multiple external endpoints. All of the remote endpoints are identical except for the URI. I would like to treat them as a pool: add and remove endpoints through configuration and have the application understand what to do.

My original plan was to define one endoint in the app.config, then iterate over my list of endpoints and update client.Endpoint.Address on the fly to point to the right place. Unfortunately, that property is read-only, rendering that plan unworkable.

I'm a little bit stumped here. Any suggestions on how I might accomplish this?

© Stack Overflow or respective owner

Related posts about wcf

Related posts about c#