Share data between web services
I want to create two web services, A and B, hosted in IIS. A is used to updated a variable X and B to retrieve the value of X.
The question is whether I can make this work by declaring X as a static class variable.开发者_Go百科 If not, what can I do ?
PS: Combining them into a single service is not an option for me.
The answer is simply YES. One can use static variable since all instances of the web service are executed in the same app domain.
精彩评论