Class ReaderWriterLocker
Namespace: Aurigma.DesignAtoms.Common.Threading
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class ReaderWriterLocker : IReaderWriterLocker
Inheritance: System.Object -> ReaderWriterLocker
Implements
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Constructors
ReaderWriterLocker
public ReaderWriterLocker()
Methods
AcquireWriteLock
public IDisposable AcquireWriteLock(string objectKey)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | objectKey |
Returns
System.IDisposable
AcquireReadLock
public IDisposable AcquireReadLock(string objectKey)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | objectKey |
Returns
System.IDisposable
AcquireWriteLockAsync
public Task<IDisposable> AcquireWriteLockAsync(string objectKey)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | objectKey |
Returns
System.Threading.Tasks.Task<System.IDisposable>
AcquireReadLockAsync
public Task<IDisposable> AcquireReadLockAsync(string objectKey)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | objectKey |
Returns
System.Threading.Tasks.Task<System.IDisposable>