Bagikan melalui


HttpRequestLifetimeFeature Kelas

Definisi

Implementasi default untuk 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
Warisan
HttpRequestLifetimeFeature
Penerapan

Konstruktor

HttpRequestLifetimeFeature()

Implementasi default untuk IHttpRequestLifetimeFeature.

Properti

RequestAborted

CancellationToken yang diaktifkan jika permintaan dibatalkan dan aplikasi harus berhenti diproses. Token tidak akan diaktifkan jika permintaan berhasil diselesaikan.

Metode

Abort()

Membatalkan permintaan secara paksa jika belum selesai. Ini akan mengakibatkan RequestAborted dipicu.

Berlaku untuk