// 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;
namespace Microsoft.AspNetCore.Http.Features
{
public interface IHttpRequestLifetimeFeature
{
///
/// A that fires if the request is aborted and
/// the application should cease processing. The token will not fire if the request
/// completes successfully.
///
CancellationToken RequestAborted { get; set; }
///
/// Forcefully aborts the request if it has not already completed. This will result in
/// RequestAborted being triggered.
///
void Abort();
}
}