Share via


WebHostExtensions.Run Méthode

Définition

Surcharges

Run(IWebHost)

Exécute une application web et bloque le thread appelant jusqu’à l’arrêt de l’hôte.

Run(IWebHost, CancellationToken)

Exécute une application web et bloque le thread appelant jusqu’à ce que le jeton soit déclenché ou l’arrêt soit déclenché.

Run(IWebHost)

Source:
WebHostExtensions.cs
Source:
WebHostExtensions.cs

Exécute une application web et bloque le thread appelant jusqu’à l’arrêt de l’hôte.

public:
[System::Runtime::CompilerServices::Extension]
 static void Run(Microsoft::AspNetCore::Hosting::IWebHost ^ host);
public static void Run (this Microsoft.AspNetCore.Hosting.IWebHost host);
static member Run : Microsoft.AspNetCore.Hosting.IWebHost -> unit
<Extension()>
Public Sub Run (host As IWebHost)

Paramètres

host
IWebHost

IWebHost à exécuter.

S’applique à

Run(IWebHost, CancellationToken)

Exécute une application web et bloque le thread appelant jusqu’à ce que le jeton soit déclenché ou l’arrêt soit déclenché.

public:
[System::Runtime::CompilerServices::Extension]
 static void Run(Microsoft::AspNetCore::Hosting::IWebHost ^ host, System::Threading::CancellationToken token);
public static void Run (this Microsoft.AspNetCore.Hosting.IWebHost host, System.Threading.CancellationToken token);
static member Run : Microsoft.AspNetCore.Hosting.IWebHost * System.Threading.CancellationToken -> unit
<Extension()>
Public Sub Run (host As IWebHost, token As CancellationToken)

Paramètres

host
IWebHost

IWebHost à exécuter.

token
CancellationToken

Jeton permettant de déclencher l’arrêt.

S’applique à