Request

Response

    TaskExtensions.SafeFireAndForget method

    Executes a task in the background with error logging. Prevents unobserved task exceptions from being silently lost.

    public static void SafeFireAndForget(this Task task, ILogger logger, string operationName)
    
    parameterdescription
    task The task to execute.
    logger Logger for error reporting.
    operationName Name of the operation for diagnostic context.

    See Also