Pass the resource URI as parameter to a WCF Service Defnition for REST based API(WebInvoke Receiver Methods) -


i need base-uri ( or of resource) triggers operation include in response.

    [webinvoke(method = "get", uritemplate = "users/user",bodystyle=webmessagebodystyle.wrappedrequest)] [operationcontract] public bool readuseraccount(user user,int taskid, **string baseurl**) {  //do - include further subsequent resource urls of base url  return result; } 

understood operation context of wcf framework.

operationcontext.current.requestcontext.requestmessage.headers.to 

reads url inside service implementation.


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

php - Improving script execution time -

How to provide Authorization & Authentication using Asp.net, C#? -