I have a WCf service library.
public class classA
public void methodA(value)
obj = value;
public object MethodB()
I have not set any attributes on the ServiceBehavior, so by default it is PerSession and Concurrency is set to Single.
When I call methodA and set the value for obj, and later call MethodB I always get null. I wish to propogate the value of obj throughout the service, and I cannot use Singleton.
How to retrieve obj from MethodB when methodA sets it?
Furthermore, I created a test function
public int Test()
test += 1; // where test is declared as int test =0;
But every time I call i get 1. Shouldn't a per session instancemode increment the value???
View Complete Post