Files
DP44/docs/ai/Common/DTS.CommonCore/Classes/Locking.md

24 lines
1.0 KiB
Markdown
Raw Normal View History

2026-04-17 14:55:32 -04:00
---
source_files:
- Common/DTS.CommonCore/Classes/Locking/LockRecord.cs
- Common/DTS.CommonCore/Classes/Locking/LockError.cs
generated_at: "2026-04-17T16:05:42.343101+00:00"
model: "zai-org/GLM-5-FP8"
schema_version: 1
sha256: "fba1fa1b617963bb"
---
# Locking
### Purpose
This module provides data structures for representing record locks in a multi-user concurrent access system. It captures both the state of an active lock (who holds it, when it was created, what item is locked) and error conditions that can arise during lock operations (stolen locks, lost locks, network failures). This is used to prevent concurrent modifications to shared resources.
### Public Interface
**`LockRecord`** - Immutable record representing an active lock.
| Member | Signature | Description |
|--------|-----------|-------------|
| `LockingUserName` | `string` (get-only) | Username of the lock holder |
| `LockingMachineName` | `string` (get-only) | Machine name where lock was acquired |
| `CreationTime` | `DateTime` (get-only) | When the lock was created |