Interface ILockStrategy
Represents a locking strategy.
Namespace: DotNetNuke.Collections.Internal
Assembly: DotNetNuke.dll
Syntax
public interface ILockStrategy
Properties
| Improve this Doc View SourceSupportsConcurrentReads
Gets a value indicating whether the lock strategy supports concurrent reads.
Declaration
bool SupportsConcurrentReads { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ThreadCanRead
Gets a value indicating whether the thread can read.
Declaration
bool ThreadCanRead { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ThreadCanWrite
Gets a value indicating whether the thread can write.
Declaration
bool ThreadCanWrite { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceGetReadLock()
Gets a read lock.
Declaration
ISharedCollectionLock GetReadLock()
Returns
Type | Description |
---|---|
ISharedCollectionLock |
GetReadLock(TimeSpan)
Gets a read lock with the specified timeout.
Declaration
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
ISharedCollectionLock GetWriteLock()
Returns
Type | Description |
---|---|
ISharedCollectionLock |
GetWriteLock(TimeSpan)
Gets a write lock with the specified timeout.
Declaration
ISharedCollectionLock GetWriteLock(TimeSpan timeout)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | timeout | The timeout for this lock. |
Returns
Type | Description |
---|---|
ISharedCollectionLock |