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
2010-02-05 12:16:50
Thanks for the amazingly quick answer.
Neil B
2010-02-05 12:22:53
And thanks to whoever corrected my spelling of endpoint in the description. ;)
Neil B
2010-02-05 12:29:03
1st Msg - No probs ;). 2nd Msg - It's things like that which make StackOverflow sooo good.
Andras Zoltan
2010-02-05 12:51:03
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
2010-02-05 14:29:40