Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ExceptionLoggerExtensions::LogAsync Method (IExceptionLogger^, ExceptionContext^, CancellationToken)

 

Calls an exception logger.

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

public:
[ExtensionAttribute]
static Task^ LogAsync(
	IExceptionLogger^ logger,
	ExceptionContext^ context,
	CancellationToken cancellationToken
)

Parameters

logger
Type: System.Web.Http.ExceptionHandling::IExceptionLogger^

The unhandled exception logger.

context
Type: System.Web.Http.ExceptionHandling::ExceptionContext^

The exception context.

cancellationToken
Type: System.Threading::CancellationToken

The token to monitor for cancellation requests.

Return Value

Type: System.Threading.Tasks::Task^

A task representing the asynchronous exception logging operation.

Return to top
Show: