Share via


IExceptionLogger.LogAsync Method (ExceptionLoggerContext, CancellationToken)

 

Logs an unhandled exception.

Namespace:   System.Web.Http.ExceptionHandling
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

Task LogAsync(
    ExceptionLoggerContext context,
    CancellationToken cancellationToken
)
Task^ LogAsync(
    ExceptionLoggerContext^ context,
    CancellationToken cancellationToken
)
abstract LogAsync : 
        context:ExceptionLoggerContext *
        cancellationToken:CancellationToken -> Task
Function LogAsync (
    context As ExceptionLoggerContext,
    cancellationToken As CancellationToken
) As Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

A task representing the asynchronous exception logging operation.

See Also

IExceptionLogger Interface
System.Web.Http.ExceptionHandling Namespace

Return to top