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
context
Type: System.Web.Http.ExceptionHandling.ExceptionLoggerContextThe exception logger context.
cancellationToken
Type: System.Threading.CancellationTokenThe token to monitor for cancellation requests.
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