ExceptionLogger.LogAsync Method (ExceptionLoggerContext, CancellationToken)
When overridden in a derived class, logs the exception asynchronously.
Namespace: System.Web.Http.ExceptionHandling
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
public virtual Task LogAsync(
ExceptionLoggerContext context,
CancellationToken cancellationToken
)
public:
virtual Task^ LogAsync(
ExceptionLoggerContext^ context,
CancellationToken cancellationToken
)
abstract LogAsync :
context:ExceptionLoggerContext *
cancellationToken:CancellationToken -> Task
override LogAsync :
context:ExceptionLoggerContext *
cancellationToken:CancellationToken -> Task
Public Overridable 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
ExceptionLogger Class
System.Web.Http.ExceptionHandling Namespace
Return to top