WebHostExtensions.StopAsync(IWebHost, TimeSpan) Yöntem

Tanım

Verilen zaman aşımıyla konağı düzgün bir şekilde durdurmayı dener.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ StopAsync(Microsoft::AspNetCore::Hosting::IWebHost ^ host, TimeSpan timeout);
public static System.Threading.Tasks.Task StopAsync (this Microsoft.AspNetCore.Hosting.IWebHost host, TimeSpan timeout);
static member StopAsync : Microsoft.AspNetCore.Hosting.IWebHost * TimeSpan -> System.Threading.Tasks.Task
<Extension()>
Public Function StopAsync (host As IWebHost, timeout As TimeSpan) As Task

Parametreler

host
IWebHost
timeout
TimeSpan

Düzgün bir şekilde durmak için zaman aşımı. Süresi dolduktan sonra sunucu kalan tüm etkin bağlantıları sonlandırabilir.

Döndürülenler

Task Durdurulduğunda IWebHost tamamlanan bir.

Şunlara uygulanır