Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF data persistence between sessions

We are developing a WCF based system. In the process we are trying to lock some data from being modified by more than one users. So we decided to have a data structure that will contain the necessary information for the locking logic to execute (by for example storing the ID of the locked objects)

The problem we are having is persisting that data between sessions. Is there anyway we can avoid executing expensive database calls? I am not sure how can we do that in WCF since it can only persist data (in memory) during an open session.

like image 563
A B Avatar asked Jun 13 '26 07:06

A B


1 Answers

Static members of the service implementing class are shared between sessions & calls.

like image 120
Jimmy McNulty Avatar answered Jun 18 '26 00:06

Jimmy McNulty



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!