Class LockExtensions
Inheritance
object
LockExtensions
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 LockExtensions
Methods
Locking(object, Action)
Declaration
public static void Locking(this object source, Action action)
Parameters
Type | Name | Description |
---|---|---|
object | source | |
System.Action | action |
Locking<T>(T, Action<T>)
Declaration
public static void Locking<T>(this T source, Action<T> action) where T : class
Parameters
Type | Name | Description |
---|---|---|
T | source | |
System.Action<T><T> | action |
Type Parameters
Name | Description |
---|---|
T |
Locking<TResult>(object, Func<TResult>)
Declaration
public static TResult Locking<TResult>(this object source, Func<TResult> func)
Parameters
Type | Name | Description |
---|---|---|
object | source | |
System.Func<TResult><TResult> | func |
Returns
Type | Description |
---|---|
TResult |
Type Parameters
Name | Description |
---|---|
TResult |
Locking<T, TResult>(T, Func<T, TResult>)
Declaration
public static TResult Locking<T, TResult>(this T source, Func<T, TResult> func) where T : class
Parameters
Type | Name | Description |
---|---|---|
T | source | |
System.Func<T, TResult><T, TResult> | func |
Returns
Type | Description |
---|---|
TResult |
Type Parameters
Name | Description |
---|---|
T | |
TResult |