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
logger
Type: System.Web.Http.ExceptionHandling.IExceptionLoggerThe unhandled exception logger.
context
Type: System.Web.Http.ExceptionHandling.ExceptionContextThe exception 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
ExceptionLoggerExtensions Class
System.Web.Http.ExceptionHandling Namespace
Return to top