Freigeben über


HostOptions.ShutdownTimeout Property

Definition

Gets or sets 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