WebHostExtensions.RunAsync(IWebHost, CancellationToken) Yöntem

Tanım

Bir web uygulaması çalıştırır ve yalnızca belirteç tetiklendiğinde veya kapatıldığında tamamlanan bir Görev döndürür.

public static System.Threading.Tasks.Task RunAsync (this Microsoft.AspNetCore.Hosting.IWebHost host, System.Threading.CancellationToken token = default);
static member RunAsync : Microsoft.AspNetCore.Hosting.IWebHost * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function RunAsync (host As IWebHost, Optional token As CancellationToken = Nothing) As Task

Parametreler

host
IWebHost

IWebHost Çalıştırılacak.

token
CancellationToken

Kapatmayı tetikleyen belirteç.

Döndürülenler

Şunlara uygulanır