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()
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 |
System.Reflection.MethodInfo |
method |
|
Returns
IsTaskOfT(Type)
Declaration
public static bool IsTaskOfT(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
IsTaskOrTaskOfT(Type)
Declaration
public static bool IsTaskOrTaskOfT(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
RunSync(Func<Task>)
Declaration
public static void RunSync(Func<Task> action)
Parameters
Type |
Name |
Description |
System.Func<TResult><System.Threading.Tasks.Task> |
action |
|
RunSync<TResult>(Func<Task<TResult>>)
Declaration
public static TResult RunSync<TResult>(Func<Task<TResult>> func)
Parameters
Type |
Name |
Description |
System.Func<TResult><System.Threading.Tasks.Task<TResult><TResult>> |
func |
|
Returns
Type Parameters
UnwrapTask(Type)
Declaration
public static Type UnwrapTask(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Type |
|