Show / Hide Table of Contents

Class SemaphoreSlimExtensions

Inheritance
object
SemaphoreSlimExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Threading
Assembly: Volo.Abp.Core.dll
Syntax
public static class SemaphoreSlimExtensions

Methods

Lock(SemaphoreSlim)

Declaration
public static IDisposable Lock(this SemaphoreSlim semaphoreSlim)
Parameters
Type Name Description
SemaphoreSlim semaphoreSlim
Returns
Type Description
IDisposable

Lock(SemaphoreSlim, int)

Declaration
public static IDisposable Lock(this SemaphoreSlim semaphoreSlim, int millisecondsTimeout)
Parameters
Type Name Description
SemaphoreSlim semaphoreSlim
int millisecondsTimeout
Returns
Type Description
IDisposable

Lock(SemaphoreSlim, int, CancellationToken)

Declaration
public static IDisposable Lock(this SemaphoreSlim semaphoreSlim, int millisecondsTimeout, CancellationToken cancellationToken)
Parameters
Type Name Description
SemaphoreSlim semaphoreSlim
int millisecondsTimeout
CancellationToken cancellationToken
Returns
Type Description
IDisposable

Lock(SemaphoreSlim, CancellationToken)

Declaration
public static IDisposable Lock(this SemaphoreSlim semaphoreSlim, CancellationToken cancellationToken)
Parameters
Type Name Description
SemaphoreSlim semaphoreSlim
CancellationToken cancellationToken
Returns
Type Description
IDisposable

Lock(SemaphoreSlim, TimeSpan)

Declaration
public static IDisposable Lock(this SemaphoreSlim semaphoreSlim, TimeSpan timeout)
Parameters
Type Name Description
SemaphoreSlim semaphoreSlim
TimeSpan timeout
Returns
Type Description
IDisposable

Lock(SemaphoreSlim, TimeSpan, CancellationToken)

Declaration
public static IDisposable Lock(this SemaphoreSlim semaphoreSlim, TimeSpan timeout, CancellationToken cancellationToken)
Parameters
Type Name Description
SemaphoreSlim semaphoreSlim
TimeSpan timeout
CancellationToken cancellationToken
Returns
Type Description
IDisposable

LockAsync(SemaphoreSlim)

Declaration
public static Task<IDisposable> LockAsync(this SemaphoreSlim semaphoreSlim)
Parameters
Type Name Description
SemaphoreSlim semaphoreSlim
Returns
Type Description
Task<IDisposable>

LockAsync(SemaphoreSlim, int)

Declaration
public static Task<IDisposable> LockAsync(this SemaphoreSlim semaphoreSlim, int millisecondsTimeout)
Parameters
Type Name Description
SemaphoreSlim semaphoreSlim
int millisecondsTimeout
Returns
Type Description
Task<IDisposable>

LockAsync(SemaphoreSlim, int, CancellationToken)

Declaration
public static Task<IDisposable> LockAsync(this SemaphoreSlim semaphoreSlim, int millisecondsTimeout, CancellationToken cancellationToken)
Parameters
Type Name Description
SemaphoreSlim semaphoreSlim
int millisecondsTimeout
CancellationToken cancellationToken
Returns
Type Description
Task<IDisposable>

LockAsync(SemaphoreSlim, CancellationToken)

Declaration
public static Task<IDisposable> LockAsync(this SemaphoreSlim semaphoreSlim, CancellationToken cancellationToken)
Parameters
Type Name Description
SemaphoreSlim semaphoreSlim
CancellationToken cancellationToken
Returns
Type Description
Task<IDisposable>

LockAsync(SemaphoreSlim, TimeSpan)

Declaration
public static Task<IDisposable> LockAsync(this SemaphoreSlim semaphoreSlim, TimeSpan timeout)
Parameters
Type Name Description
SemaphoreSlim semaphoreSlim
TimeSpan timeout
Returns
Type Description
Task<IDisposable>

LockAsync(SemaphoreSlim, TimeSpan, CancellationToken)

Declaration
public static Task<IDisposable> LockAsync(this SemaphoreSlim semaphoreSlim, TimeSpan timeout, CancellationToken cancellationToken)
Parameters
Type Name Description
SemaphoreSlim semaphoreSlim
TimeSpan timeout
CancellationToken cancellationToken
Returns
Type Description
Task<IDisposable>
In this article
Back to top Powered by ABP.IO Platform