Class TaskExtensions
- Namespace
- SunamoExtensions
- Assembly
- SunamoExtensions.dll
Extension methods for Task type
public static class TaskExtensions
- Inheritance
-
TaskExtensions
- Inherited Members
Methods
Conf(Task)
Configures an awaiter for this task with continueOnCapturedContext set to true
public static ConfiguredTaskAwaitable Conf(this Task task)
Parameters
taskTaskTask to configure
Returns
- ConfiguredTaskAwaitable
Configured task awaitable
Conf<T>(Task<T>)
Configures an awaiter for this task with continueOnCapturedContext set to true
public static ConfiguredTaskAwaitable<T> Conf<T>(this Task<T> task)
Parameters
taskTask<T>Task to configure
Returns
- ConfiguredTaskAwaitable<T>
Configured task awaitable
Type Parameters
TType of the task result
LogExceptions(Task)
Logs exceptions that occur during task execution
public static void LogExceptions(this Task task)
Parameters
taskTaskTask to monitor for exceptions