Progress® Telerik® Reporting R3 2017

IStorageAcquireLock Method

Acquires a lock on a named resource.

Namespace:  Telerik.Reporting.Cache.Interfaces
Assembly:  Telerik.Reporting (in Telerik.Reporting.dll)

Syntax

IDisposable AcquireLock(
	string key
)

Parameters

key
Type: SystemString
The name of the lock. When a lock with particular key is acquired, a subsequent call on AcuireLock with the same key should wait until the original lock is released (disposed).

Return Value

Type: IDisposable
A disposable lock object. When disposed from the lock object owner, the lock of the used key is released.

Remarks

Acquires a lock on a named resource and returns a disposable lock object. When the lock object owner disposes it, the lock is released.

See Also