WebHostExtensions.RunAsync(IWebHost, CancellationToken) Metoda

Definicja

Uruchamia aplikację internetową i zwraca zadanie, które jest wykonywane tylko po wyzwoleniu tokenu lub wyłączeniu.

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

Parametry

host
IWebHost

Element IWebHost do uruchomienia.

token
CancellationToken

Token do wyzwolenia zamknięcia.

Zwraca

Dotyczy