IServer.StopAsync(CancellationToken) 方法

定义

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

public:
 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
Public Function StopAsync (cancellationToken As CancellationToken) As Task

参数

cancellationToken
CancellationToken

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

返回

适用于