tags:

views:

54

answers:

1

Does anyone know if the endpoint used for the service request can be accessed from within the service?

+1  A: 

Use

System.ServiceModel.OperationContext.Current.EndpointDispatcher.EndpointAddress

That should do the job.

Andras Zoltan
Thanks for the amazingly quick answer.
Neil B
And thanks to whoever corrected my spelling of endpoint in the description. ;)
Neil B
1st Msg - No probs ;). 2nd Msg - It's things like that which make StackOverflow sooo good.
Andras Zoltan
Yeah, I'm in the middle of a 6 month project to develop a WCF service and WPF UI. Having never really used either commercially Stack Overflow has been invaluable.
Neil B