HttpResponse.StartAsync(CancellationToken) 方法

定义

通过调用 OnStarting () 并使标头不可修改来启动响应。

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

参数

cancellationToken
CancellationToken

返回

注解

Microsoft.AspNetCore.Http.Features.IHttpResponseStartFeature如果未设置 ,StartAsync 将默认调用 HttpResponse.Body.FlushAsync () 。

适用于