forked from aspnet/AspNetWebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIExceptionLogger.cs
More file actions
18 lines (16 loc) · 811 Bytes
/
IExceptionLogger.cs
File metadata and controls
18 lines (16 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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
{
/// <summary>Defines an unhandled exception logger.</summary>
public interface IExceptionLogger
{
/// <summary>Logs an unhandled exception.</summary>
/// <param name="context">The exception logger context.</param>
/// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
/// <returns>A task representing the asynchronous exception logging operation.</returns>
Task LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken);
}
}