ShutdownTimeout default value in documentation (#32070)

Update the default value for ShutdownTimeout according to https://github.com/dotnet/runtime/blob/v8.0.3/src/libraries/Microsoft.Extensions.Hosting/src/HostOptions.cs#L24
pull/32088/head
Fredrik C 2024-03-20 00:56:49 +01:00 committed by GitHub
parent 43bc00124b
commit afdabc8bf5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ If the timeout period expires before all of the hosted services stop, any remain
**Key**: `shutdownTimeoutSeconds`
**Type**: `int`
**Default**: 5 seconds
**Default**: 30 seconds
**Environment variable**: `{PREFIX_}SHUTDOWNTIMEOUTSECONDS`
To set this value, use the environment variable or configure `HostOptions`. The following example sets the timeout to 20 seconds: