HttpRequestLifetimeFeature 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
的默认实现 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。 |