Under Desk Bike

    Show / Hide Table of Contents

    Class TaskExtensions

    Extensions for supporting async tasks.

    Inheritance
    object
    TaskExtensions
    Namespace: Codaris.Common
    Assembly: Codaris.Common.dll
    Syntax
    public static class TaskExtensions

    Methods

    FireAndForget(Task, Action<Exception>)

    Fires and forgets the task. Requires an action to handle any task exceptions.

    public static void FireAndForget(this Task task, Action<Exception> errorHandler)
    Parameters
    Type Name Description
    Task task

    The task.

    Action<Exception> errorHandler

    The error handler.

    FireAndForget(Task, Func<Exception, bool>)

    Fires and forgets the task. Requires an action to handle any task exceptions.

    public static void FireAndForget(this Task task, Func<Exception, bool> errorHandler)
    Parameters
    Type Name Description
    Task task

    The task.

    Func<Exception, bool> errorHandler

    The error handler.

    Back to top Copyright (c) 2021 by Wayne Venables