// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading;
using System.Threading.Tasks;
namespace System.Web.Http.ExceptionHandling
{
/// Defines an unhandled exception logger.
public interface IExceptionLogger
{
/// Logs an unhandled exception.
/// The exception logger context.
/// The token to monitor for cancellation requests.
/// A task representing the asynchronous exception logging operation.
Task LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken);
}
}