Stateful DomainService


  • Hello,

    I created a ServiceClass:DomainService in a class library project, created a link to that project, the service is called, no problem here.My service has 2 simple methods: int GetValue() and voi Increment() wich modify a private int. I want that calls to GetValue() and Increment() to be made on tha same session so I can increment and return the same value of my field. What configuration should I use and what are the constraints ?

    Thank you

    Friday, April 27, 2012 5:23 AM


  • The DomainService will never be stateful, but since you are running under ASP.NET compatiblity you do have access to the ASP.NET Session State if you want to store values there.

    Friday, April 27, 2012 9:54 AM