internal void Open(VersionToken versionToken) { if (Interlocked.CompareExchange(ref _free, 0, 1) == 1) { _versionToken = versionToken; } }
internal LockSlot(LockContext <T> context, int id, VersionToken versionToken) { _context = context ?? throw new ArgumentNullException(nameof(context)); _versionToken = versionToken; Id = id; }