Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

HostOptions.ShutdownTimeout Property

Definition

Namespace:
Microsoft.Extensions.Hosting
Assembly:
Microsoft.Extensions.Hosting.dll
Package:
Microsoft.Extensions.Hosting v11.0.0-preview.5.26302.115
Source:
HostOptions.cs
Source:
HostOptions.cs
Source:
HostOptions.cs
Source:
HostOptions.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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


Feedback

Was this page helpful?