I have the following C# RESTful interace.
[WebGet(UriTemplate = "requires-authorization", ResponseFormat = WebMessageFormat.Json)] [OperationContract] string MethodRequiringAuthorization(); Which is implemented int the following class
public string MethodRequiringAuthorization() { //var authorisazation = HTTP header authorization field return "{Message" + ":" + "You-accessed-this-message-with-authorization" + "}"; } I would like to pass into this method the value of the field "Authorization" in the http header (as described in the commented line). Any ideas how I can retrieve this value
this.Request?Requestproperty is not present.