C# Класс Shielded.WriteStamp

Contains information on the thread that has locked an object.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Locker TransactionContext
Version long?

Открытые методы

Метод Описание
Release ( ) : void
Wait ( ) : void
WriteStamp ( TransactionContext locker ) : System

Описание методов

Release() публичный Метод

public Release ( ) : void
Результат void

Wait() публичный Метод

public Wait ( ) : void
Результат void

WriteStamp() публичный Метод

public WriteStamp ( TransactionContext locker ) : System
locker TransactionContext
Результат System

Описание свойств

Locker публичное свойство

Reference to the locking transaction. Useful to make sure that a thread, on rollback, releases only those locks it made.
public TransactionContext,Shielded Locker
Результат TransactionContext

Version публичное свойство

The version of the data that is about to be written into the locked object. All threads which should be able to read this version (i.e. their Shield.ReadStamp is greater or equal to this value) must wait for the lock to be released. If the value is null, then this lock is still being checked and the reader may proceed - when/if it passes check, it will certainly get a higher value than current reader's read stamp.
public long? Version
Результат long?