WebHostExtensions.Run WebHostExtensions.Run WebHostExtensions.Run Method

Definition

Overloads

Run(IWebHost) Run(IWebHost) Run(IWebHost)

Runs a web application and block the calling thread until host shutdown.

Run(IWebHost, CancellationToken) Run(IWebHost, CancellationToken) Run(IWebHost, CancellationToken)

Runs a web application and block the calling thread until token is triggered or shutdown is triggered.

Run(IWebHost) Run(IWebHost) Run(IWebHost)

Runs a web application and block the calling thread until host shutdown.

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)

Parameters

host
IWebHost IWebHost IWebHost

The IWebHost to run.

Run(IWebHost, CancellationToken) Run(IWebHost, CancellationToken) Run(IWebHost, CancellationToken)

Runs a web application and block the calling thread until token is triggered or shutdown is triggered.

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)

Parameters

host
IWebHost IWebHost IWebHost

The IWebHost to run.

token
CancellationToken CancellationToken CancellationToken

The token to trigger shutdown.

Applies to