HttpResponse.StartAsync(CancellationToken) Méthode

Définition

Démarre la réponse en appelant OnStarting() et en rendant les en-têtes non modifiables.

public virtual System.Threading.Tasks.Task StartAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member StartAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.StartAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function StartAsync (Optional cancellationToken As CancellationToken = Nothing) As Task

Paramètres

cancellationToken
CancellationToken

Retours

Remarques

Si le Microsoft.AspNetCore.Http.Features.IHttpResponseStartFeature n’est pas défini, StartAsync appelle par défaut HttpResponse.Body.FlushAsync().

S’applique à