HostOptions.ShutdownTimeout 屬性

定義

取得或設定的預設 StopAsync(CancellationToken)逾時。

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

屬性值

備註

此逾時也包含所有實作 和StoppedAsync(CancellationToken)StoppingAsync(CancellationToken)主機服務。

適用於