共用方式為


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。

適用於