IApplicationLifetime.ApplicationStopping 属性

定义

当应用程序主机执行正常关闭时触发。Triggered when the application host is performing a graceful shutdown. 请求可能仍在进行中。Requests may still be in flight. 在此事件完成之前,关闭将被阻止。Shutdown will block until this event completes.

public:
 property System::Threading::CancellationToken ApplicationStopping { System::Threading::CancellationToken get(); };
public System.Threading.CancellationToken ApplicationStopping { get; }
member this.ApplicationStopping : System.Threading.CancellationToken
Public ReadOnly Property ApplicationStopping As CancellationToken

属性值

CancellationToken

适用于