KestrelServer.StopAsync(CancellationToken) 方法

定义

如果可能,请停止处理请求并正常关闭服务器。

public:
 virtual System::Threading::Tasks::Task ^ StopAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task StopAsync (System.Threading.CancellationToken cancellationToken);
abstract member StopAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.StopAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StopAsync (cancellationToken As CancellationToken) As Task

参数

cancellationToken
CancellationToken

指示是否应中止正常关闭。

返回

实现

适用于