Class AsyncSynchronized
Provides static methods for creating AsyncSynchronized<T> without explicitly specifying the type of the protected object.
Inheritance
System.Object
AsyncSynchronized
Namespace: InSync
Assembly: InSync.dll
Syntax
public static class AsyncSynchronized : object
Methods
Create<T>(T)
Creates a AsyncSynchronized<T> with the a new
Declaration
public static AsyncSynchronized<T> Create<T>(T value)
where T : class
Parameters
Type | Name | Description |
---|---|---|
T | value | The object to protect. |
Returns
Type | Description |
---|---|
AsyncSynchronized<T> |
Type Parameters
Name | Description |
---|---|
T | The type of the protected object. |
Create<T>(SemaphoreSlim, T)
Creates a AsyncSynchronized<T> with the specified
Declaration
public static AsyncSynchronized<T> Create<T>(SemaphoreSlim semaphore, T value)
where T : class
Parameters
Type | Name | Description |
---|---|---|
SemaphoreSlim | semaphore | The semaphore for synchronization. |
T | value | The object to protect. |
Returns
Type | Description |
---|---|
AsyncSynchronized<T> |
Type Parameters
Name | Description |
---|---|
T | The type of the protected object. |