Share via


ExceptionLoggerExtensions.LogAsync Method (IExceptionLogger, ExceptionContext, CancellationToken)

 

Calls an exception logger.

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

Syntax

public static Task LogAsync(
    this IExceptionLogger logger,
    ExceptionContext context,
    CancellationToken cancellationToken
)
public:
[ExtensionAttribute]
static Task^ LogAsync(
    IExceptionLogger^ logger,
    ExceptionContext^ context,
    CancellationToken cancellationToken
)
static member LogAsync : 
        logger:IExceptionLogger *
        context:ExceptionContext *
        cancellationToken:CancellationToken -> Task
<ExtensionAttribute>
Public Shared Function LogAsync (
    logger As IExceptionLogger,
    context As ExceptionContext,
    cancellationToken As CancellationToken
) As Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

A task representing the asynchronous exception logging operation.

See Also

ExceptionLoggerExtensions Class
System.Web.Http.ExceptionHandling Namespace

Return to top