ExceptionLogger.LogAsync Method
When overridden in a derived class, logs the exception asynchronously.
Namespace: System.Web.Http.ExceptionHandling
Assembly: System.Web.Http (in System.Web.Http.dll)
public virtual Task LogAsync( ExceptionLoggerContext context, CancellationToken cancellationToken )
Parameters
- context
- Type: System.Web.Http.ExceptionHandling.ExceptionLoggerContext
The exception logger context.
- cancellationToken
- Type: System.Threading.CancellationToken
The token to monitor for cancellation requests.
Return Value
Type: System.Threading.Tasks.TaskA task representing the asynchronous exception logging operation.
Show: