title: WCF Service, how to get the web site URL from within a class library?
body: <p>I have a WCF service running in IIS that calls a function in a class library where httpContext is available. How can I dynamically get the web site url, this may also be a virtual directory?</p>