IHttpRequestLifetimeFeature Interface¶
- Namespace
Microsoft.AspNetCore.Http.Features
- Assemblies
- Microsoft.AspNetCore.Http.Features
Syntax¶
public interface IHttpRequestLifetimeFeature
-
interface
Microsoft.AspNetCore.Http.Features.
IHttpRequestLifetimeFeature
Methods¶
-
Abort
()¶ Forcefully aborts the request if it has not already completed. This will result in RequestAborted being triggered.
void Abort()
-
Properties¶
-
Microsoft.AspNetCore.Http.Features.IHttpRequestLifetimeFeature.
RequestAborted
¶ A
System.Threading.CancellationToken
that fires if the request is aborted and the application should cease processing. The token will not fire if the request completes successfully.Return type: System.Threading.CancellationToken CancellationToken RequestAborted { get; set; }
-