Show / Hide Table of Contents

Class InternalAsyncHelper

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

Methods

AwaitTaskWithFinally(Task, Action<Exception?>)

Declaration
public static Task AwaitTaskWithFinally(Task actualReturnValue, Action<Exception?> finalAction)
Parameters
Type Name Description
System.Threading.Tasks.Task actualReturnValue
System.Action<T><System.Exception> finalAction
Returns
Type Description
System.Threading.Tasks.Task

AwaitTaskWithFinallyAndGetResult<T>(Task<T>, Action<Exception?>)

Declaration
public static Task<T> AwaitTaskWithFinallyAndGetResult<T>(Task<T> actualReturnValue, Action<Exception?> finalAction)
Parameters
Type Name Description
System.Threading.Tasks.Task<TResult><T> actualReturnValue
System.Action<T><System.Exception> finalAction
Returns
Type Description
System.Threading.Tasks.Task<TResult><T>
Type Parameters
Name Description
T

AwaitTaskWithPostActionAndFinally(Task, Func<Task>, Action<Exception?>)

Declaration
public static Task AwaitTaskWithPostActionAndFinally(Task actualReturnValue, Func<Task> postAction, Action<Exception?> finalAction)
Parameters
Type Name Description
System.Threading.Tasks.Task actualReturnValue
System.Func<TResult><System.Threading.Tasks.Task> postAction
System.Action<T><System.Exception> finalAction
Returns
Type Description
System.Threading.Tasks.Task

AwaitTaskWithPostActionAndFinallyAndGetResult<T>(Task<T>, Func<Task>, Action<Exception?>)

Declaration
public static Task<T> AwaitTaskWithPostActionAndFinallyAndGetResult<T>(Task<T> actualReturnValue, Func<Task> postAction, Action<Exception?> finalAction)
Parameters
Type Name Description
System.Threading.Tasks.Task<TResult><T> actualReturnValue
System.Func<TResult><System.Threading.Tasks.Task> postAction
System.Action<T><System.Exception> finalAction
Returns
Type Description
System.Threading.Tasks.Task<TResult><T>
Type Parameters
Name Description
T

AwaitTaskWithPreActionAndPostActionAndFinally(Func<Task>, Func<Task>?, Func<Task>?, Action<Exception?>?)

Declaration
public static Task AwaitTaskWithPreActionAndPostActionAndFinally(Func<Task> actualReturnValue, Func<Task>? preAction = null, Func<Task>? postAction = null, Action<Exception?>? finalAction = null)
Parameters
Type Name Description
System.Func<TResult><System.Threading.Tasks.Task> actualReturnValue
System.Func<TResult><System.Threading.Tasks.Task> preAction
System.Func<TResult><System.Threading.Tasks.Task> postAction
System.Action<T><System.Exception> finalAction
Returns
Type Description
System.Threading.Tasks.Task

AwaitTaskWithPreActionAndPostActionAndFinallyAndGetResult<T>(Func<Task<T>>, Func<Task>?, Func<Task>?, Action<Exception?>?)

Declaration
public static Task<T> AwaitTaskWithPreActionAndPostActionAndFinallyAndGetResult<T>(Func<Task<T>> actualReturnValue, Func<Task>? preAction = null, Func<Task>? postAction = null, Action<Exception?>? finalAction = null)
Parameters
Type Name Description
System.Func<TResult><System.Threading.Tasks.Task<TResult><T>> actualReturnValue
System.Func<TResult><System.Threading.Tasks.Task> preAction
System.Func<TResult><System.Threading.Tasks.Task> postAction
System.Action<T><System.Exception> finalAction
Returns
Type Description
System.Threading.Tasks.Task<TResult><T>
Type Parameters
Name Description
T

CallAwaitTaskWithFinallyAndGetResult(Type, object, Action<Exception>)

Declaration
public static object CallAwaitTaskWithFinallyAndGetResult(Type taskReturnType, object actualReturnValue, Action<Exception> finalAction)
Parameters
Type Name Description
System.Type taskReturnType
object actualReturnValue
System.Action<T><System.Exception> finalAction
Returns
Type Description
object

CallAwaitTaskWithPostActionAndFinallyAndGetResult(Type, object, Func<Task>, Action<Exception>)

Declaration
public static object CallAwaitTaskWithPostActionAndFinallyAndGetResult(Type taskReturnType, object actualReturnValue, Func<Task> action, Action<Exception> finalAction)
Parameters
Type Name Description
System.Type taskReturnType
object actualReturnValue
System.Func<TResult><System.Threading.Tasks.Task> action
System.Action<T><System.Exception> finalAction
Returns
Type Description
object

CallAwaitTaskWithPreActionAndPostActionAndFinallyAndGetResult(Type, Func<object>, Func<Task>?, Func<Task>?, Action<Exception>?)

Declaration
public static object CallAwaitTaskWithPreActionAndPostActionAndFinallyAndGetResult(Type taskReturnType, Func<object> actualReturnValue, Func<Task>? preAction = null, Func<Task>? postAction = null, Action<Exception>? finalAction = null)
Parameters
Type Name Description
System.Type taskReturnType
System.Func<TResult><object> actualReturnValue
System.Func<TResult><System.Threading.Tasks.Task> preAction
System.Func<TResult><System.Threading.Tasks.Task> postAction
System.Action<T><System.Exception> finalAction
Returns
Type Description
object
In This Article
Back to top Powered by Volosoft