• Performance
  • API Documentation
  • Source Code
Show / Hide Table of Contents
  • InSync
    • AsyncSynchronized
    • AsyncSynchronized<T>
    • GuardedValue<T>
    • IAsyncSynchronized<T>
    • IBareAsyncLock
    • IBareAsyncLock<T>
    • IBareLock
    • IBareLock<T>
    • ISynchronized<T>
    • LockException
    • MultiSync
    • ReaderSynchronized<TRead>
    • ReaderWriterSynchronized<T>
    • ReaderWriterSynchronized<TWrite, TRead>
    • ReaderWriterSynchronizedFactory
    • Synchronized
    • Synchronized<T>
    • TimingMethod
    • UnlockException
    • UpgradeableReaderSynchronized<TRead>
    • ValueContainer<T>

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 which its initial count is 1 and the specified object to protect.

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 and object to protect.

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.

In This Article
Back to top Generated by DocFX