語言

HostOptions.ServicesStopConcurrently 屬性

定義

取得或設定一個值,指示是否 IHost 會同時或依序停止註冊的實例 IHostedService 。

public:
 property bool ServicesStopConcurrently { bool get(); void set(bool value); };
public bool ServicesStopConcurrently { get; set; }
member this.ServicesStopConcurrently : bool with get, set
Public Property ServicesStopConcurrently As Boolean

屬性值

true 如果 會 IHost 同時停止註冊實例 IHostedService ; false 如果 會 IHost 依序停止註冊實例。 預設為 false 。

適用於