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。 |