weboperationcontext

What is the WCF equivalent of HttpContext.Current.Request.RawUrl?

安稳与你 提交于 2019-11-27 11:31:59
问题 I've got some RESTful services running in a pure WCF context (i.e. ASP.NET compatibility is not enabled, and thus there is no HttpContext.Current object available). The URLs to the services are rewritten at the start of the request using an IHttpModule (which at that point does have an HttpContext and rewrites it using HttpContext.Current.RewritePath ) to get rid of things like the .svc extension from the URL. However, I need to access the original URL that was requested from within the WCF