Greetings. I am searching for a way to provide a couple "global" parameters to my WCF DataService.
What I would like to be able to do is set a couple properties on the server which will be held onto by the server for future queries by the client.
For example, it would be great when I create my client if in the constructor I can just say:
MyDataService service = new MyDataService("http://somurl/myservice.svc?param1=value1ÃÂ¶m2=value2
I can then use param1 and param2 when a client calls my service and use QueryInterceptors to provide filters to the queries. I want to avoid having to write custom WebGet methods.
If there is a way to accomplish this; great!
If there is a way to accomplish this with just 1 call; even better!
View Complete Post