Class: Base2art.Threading.Tasks.ExceptionalFuncTaskThenner

The wrapper for the task extension library for accomodating exceptional events.

Inherits

└── System.Object

Methods

Execute

Executes the task.

Returns: System.Threading.Tasks.Task
=> The task.


ExecuteWithRetry(System.Int32)

Execute the task and if it fails, it re-executes times.

Parameter Type Info
times System.Int32 The number of retries.

Returns: System.Threading.Tasks.Task
=> The task.


OnCompleted(System.Func<System.Threading.Tasks.Task>)

The action to execute on when the task executes sucessfully.

Parameter Type Info
successRunner System.Func<System.Threading.Tasks.Task> The action to run.

Returns: Base2art.Threading.Tasks.ExceptionalFuncTaskThenner
=> The wrapping class.


OnCompleted(System.Action)

The action to execute on when the task executes sucessfully.

Parameter Type Info
successRunner System.Action The action to run.

Returns: Base2art.Threading.Tasks.ExceptionalFuncTaskThenner
=> The wrapping class.


OnError(System.Func<System.Exception, System.Threading.Tasks.Task>)

The action to execute on when the task throws an exception.

Parameter Type Info
exceptionRunner System.Func<System.Exception, System.Threading.Tasks.Task> The action to run.

Returns: Base2art.Threading.Tasks.ExceptionalFuncTaskThenner
=> The wrapping class.


OnError(System.Action<System.Exception>)

The action to execute on when the task throws an exception.

Parameter Type Info
exceptionRunner System.Action<System.Exception> The action to run.

Returns: Base2art.Threading.Tasks.ExceptionalFuncTaskThenner
=> The wrapping class.

Inherited Methods

  • ToString

  • Equals(System.Object)

  • Equals(System.Object, System.Object)

  • ReferenceEquals(System.Object, System.Object)

  • GetHashCode

  • GetType