[ROOT] / doc / toc / ARCAPI / Class / DataStorage / Lock / __TOCDet
Key | Value |
---|---|
Assembly | ARCAPI |
DocFragType | ClassMember |
IsInherited | -False- |
IsInheritedDoc | -False- |
Lines | -11- |
Name | Lock |
Namespace | ARCAPI |
Type | DataStorage |
ClassMemberAttribute
Key | Value |
---|---|
DeclaringType | DataStorage |
MethodName | Lock |
MethodSignature | System.Threading.ReaderWriterLockSlim Lock |
Locking object for thread-safe access from simultaneous API requests.
BaseController components like RQController and EditController (offering HTML forms POSTing to AddController) will typically need to acquire a Read lock (EnterReadLock),
while components like AddController will typically need to acquire a Write lock (EnterWriteLock).
Locking is also need by when keeping storage up-to-date by Subscription to PropertyStream through OutsideLocalReceiver.
In ARCEvent typical components requiring read locks are -ProcessController-, -ESController- and -UIController- while -ASController- requires first a read lock (for parsing) and then a write lock.
NOTE: It is assumed that DocLinks can be accessed without locking
NOTE: (see under DocLinks for details).
Generated 2025-04-22 15:13:29.587 UTC