HttpRequestLifetimeFeature 类

定义

的默认实现 IHttpRequestLifetimeFeature

public ref class HttpRequestLifetimeFeature : Microsoft::AspNetCore::Http::Features::IHttpRequestLifetimeFeature
public class HttpRequestLifetimeFeature : Microsoft.AspNetCore.Http.Features.IHttpRequestLifetimeFeature
type HttpRequestLifetimeFeature = class
    interface IHttpRequestLifetimeFeature
Public Class HttpRequestLifetimeFeature
Implements IHttpRequestLifetimeFeature
继承
HttpRequestLifetimeFeature
实现

构造函数

HttpRequestLifetimeFeature()

的默认实现 IHttpRequestLifetimeFeature

属性

RequestAborted

如果 CancellationToken 请求中止且应用程序应停止处理,则触发的 。 如果请求成功完成,则不会触发令牌。

方法

Abort()

如果请求尚未完成,则强制中止请求。 这将导致触发 RequestAborted。

适用于