HttpRequestLifetimeFeature Class

Definition

Default implementation for IHttpRequestLifetimeFeature.

C#
public class HttpRequestLifetimeFeature : Microsoft.AspNetCore.Http.Features.IHttpRequestLifetimeFeature
Inheritance
HttpRequestLifetimeFeature
Implements

Constructors

Properties

RequestAborted

A CancellationToken that fires if the request is aborted and the application should cease processing. The token will not fire if the request completes successfully.

Methods

Abort()

Forcefully aborts the request if it has not already completed. This will result in RequestAborted being triggered.

Applies to

Tuote Versiot
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0