共用方式為


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

指出是否應該中止正常關機。

傳回

實作

適用於