Class ExclusiveLockStrategy
Represents an exclusive locking strategy.
Inheritance
System.Object
ExclusiveLockStrategy
Namespace: DotNetNuke.Collections.Internal
Assembly: DotNetNuke.dll
Syntax
public class ExclusiveLockStrategy : object, ILockStrategy
Properties
| Improve this Doc View SourceSupportsConcurrentReads
Gets a value indicating whether the lock strategy supports concurrent reads.
Declaration
public bool SupportsConcurrentReads { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ThreadCanRead
Gets a value indicating whether the thread can read.
Declaration
public bool ThreadCanRead { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ThreadCanWrite
Gets a value indicating whether the thread can write.
Declaration
public bool ThreadCanWrite { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceDispose()
Represents an exclusive locking strategy.
Declaration
public void Dispose()
Exit()
Releases the exclusive lock.
Declaration
public void Exit()
GetReadLock()
Gets a read lock.
Declaration
public ISharedCollectionLock GetReadLock()
Returns
Type | Description |
---|---|
ISharedCollectionLock |
GetReadLock(TimeSpan)
Gets a read lock with the specified timeout.
Declaration
public ISharedCollectionLock GetReadLock(TimeSpan timeout)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | timeout | The timeout for this lock. |
Returns
Type | Description |
---|---|
ISharedCollectionLock |
GetWriteLock()
Gets a write lock.
Declaration
public ISharedCollectionLock GetWriteLock()
Returns
Type | Description |
---|---|
ISharedCollectionLock |
GetWriteLock(TimeSpan)
Gets a write lock with the specified timeout.
Declaration
public ISharedCollectionLock GetWriteLock(TimeSpan timeout)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | timeout | The timeout for this lock. |
Returns
Type | Description |
---|---|
ISharedCollectionLock |
Implements
IDisposable