How to get configuration for WCF Service

Posted by klashar on Stack Overflow See other posts from Stack Overflow or by klashar
Published on 2010-04-14T18:26:04Z Indexed on 2010/04/14 18:43 UTC
Read the original article Hit count: 254

Filed under:
|
|
|

I want to check whether the endpoint is defined in the configuration before I'll try to create it

System.ServiceModel.ClientBase<T> sourceClient = new System.ServiceModel.ClientBase<T>(EndpointName, new EndpointAddress(discoveryUri));

To check it I need get a configuration but how can I define whether I need to use WebConfigurationManager or ConfigurationManager. Is there any way to define where a WCF service is hosted?

© Stack Overflow or respective owner

Related posts about wcfservice

Related posts about c#