Show / Hide Table of Contents

Class AsyncHelper

Inheritance
object
AsyncHelper
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 AsyncHelper

Methods

IsAsync(MethodInfo)

Declaration
public static bool IsAsync(this MethodInfo method)
Parameters
Type Name Description
MethodInfo method
Returns
Type Description
bool

IsTaskOfT(Type)

Declaration
public static bool IsTaskOfT(this Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
bool

IsTaskOrTaskOfT(Type)

Declaration
public static bool IsTaskOrTaskOfT(this Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
bool

RunSync(Func<Task>)

Declaration
public static void RunSync(Func<Task> action)
Parameters
Type Name Description
Func<Task> action

RunSync<TResult>(Func<Task<TResult>>)

Declaration
public static TResult RunSync<TResult>(Func<Task<TResult>> func)
Parameters
Type Name Description
Func<Task<TResult>> func
Returns
Type Description
TResult
Type Parameters
Name Description
TResult

UnwrapTask(Type)

Declaration
public static Type UnwrapTask(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
Type
In this article
Back to top Powered by ABP.IO Platform