Table of Contents

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

task Task

Task 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

task Task<T>

Task to configure

Returns

ConfiguredTaskAwaitable<T>

Configured task awaitable

Type Parameters

T

Type of the task result

LogExceptions(Task)

Logs exceptions that occur during task execution

public static void LogExceptions(this Task task)

Parameters

task Task

Task to monitor for exceptions