HostingAbstractionsWebHostBuilderExtensions.UseShutdownTimeout Method
Definition
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.
Specify the amount of time to wait for the web host to shutdown.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseShutdownTimeout(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, TimeSpan timeout);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseShutdownTimeout (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, TimeSpan timeout);
static member UseShutdownTimeout : Microsoft.AspNetCore.Hosting.IWebHostBuilder * TimeSpan -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseShutdownTimeout (hostBuilder As IWebHostBuilder, timeout As TimeSpan) As IWebHostBuilder
Parameters
- hostBuilder
- IWebHostBuilder
The IWebHostBuilder to configure.
- timeout
- TimeSpan
The amount of time to wait for server shutdown.
Returns
The IWebHostBuilder.
Applies to
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ