Megosztás a következőn keresztül:


HostOptions.ShutdownTimeout Property

Definition

The default timeout for 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

Property Value

Remarks

This timeout also encompasses all host services implementing StoppingAsync(CancellationToken) and StoppedAsync(CancellationToken).

Applies to