Reputation: 1200
I have a WCF service (A) that runs in a web type container (IIS etc etc). I need to send the endpoint address/URL of this service (A) to another service (B). The service (A) is configured via web.config and the system.serviceModel tags. How can I find the endpoint address/URL of the service (A) in c#.
Upvotes: 3
Views: 3214
Reputation: 58522
Have you looked at OperationContext.Current.EndpointDispatcher.EndpointAddress
Gets the address of the endpoint.
Upvotes: 10